Foxit PDF SDK
CFX_UTF8Encoder Class Reference

Public Member Functions

 CFX_UTF8Encoder (IFX_Allocator *pAllocator=0)
 A constructor. Set the encoder to initial. More...
 
void AppendStr (FX_BSTR str)
 Append a non-buffered byte string. More...
 
CFX_ByteStringC GetResult () const
 Get the result. More...
 
void GetResult (CFX_ByteStringL &result) const
 Get the result. More...
 
void Input (FX_WCHAR unicode)
 Input a unicode. More...
 

Detailed Description

The class represents a simple UTF-8 encoder.

Constructor & Destructor Documentation

◆ CFX_UTF8Encoder()

CFX_UTF8Encoder::CFX_UTF8Encoder ( IFX_Allocator pAllocator = 0)
inline

A constructor. Set the encoder to initial.

Parameters
[in]pAllocatorAn allocator. Default value: NULL

Member Function Documentation

◆ AppendStr()

void CFX_UTF8Encoder::AppendStr ( FX_BSTR  str)
inline

Append a non-buffered byte string.

Parameters
[in]strA non-buffered byte string.
Returns
None.

◆ GetResult() [1/2]

CFX_ByteStringC CFX_UTF8Encoder::GetResult ( ) const
inline

Get the result.

Returns
A byte string.

◆ GetResult() [2/2]

void CFX_UTF8Encoder::GetResult ( CFX_ByteStringL &  result) const
inline

Get the result.

Parameters
[out]resultReceives the result byte string.
Returns
None.

◆ Input()

void CFX_UTF8Encoder::Input ( FX_WCHAR  unicode)

Input a unicode.

Parameters
[in]unicodeThe input unicode.
Returns
None.