Foxit PDF SDK
CFX_UTF8Decoder类 参考

Public 成员函数

 CFX_UTF8Decoder (IFX_Allocator *pAllocator=0)
 构造函数。将解码器设置为初始状态。 更多...
 
void AppendChar (FX_DWORD ch)
 将字符追加到宽字符文本缓冲区。 更多...
 
void Clear ()
 清除解码状态并将输出宽字符文本缓冲区设为空。 更多...
 
void ClearStatus ()
 清除解码状态。 更多...
 
CFX_WideStringC GetResult () const
 获取结果。 更多...
 
void GetResult (CFX_WideStringL &result) const
 获取结果。 更多...
 
void Input (FX_BYTE byte)
 输入字节。 更多...
 

详细描述

表示简单UTF-8解码器的类。

构造及析构函数说明

◆ CFX_UTF8Decoder()

CFX_UTF8Decoder::CFX_UTF8Decoder ( IFX_Allocator pAllocator = 0)
inline

构造函数。将解码器设置为初始状态。

参数
[in]pAllocator分配器。默认值:NULL
返回
无。

成员函数说明

◆ AppendChar()

void CFX_UTF8Decoder::AppendChar ( FX_DWORD  ch)

将字符追加到宽字符文本缓冲区。

参数
[in]ch输入的字符。
返回
无。

◆ Clear()

void CFX_UTF8Decoder::Clear ( )

清除解码状态并将输出宽字符文本缓冲区设为空。

返回
无。

◆ ClearStatus()

void CFX_UTF8Decoder::ClearStatus ( )
inline

清除解码状态。

返回
无。

◆ GetResult() [1/2]

CFX_WideStringC CFX_UTF8Decoder::GetResult ( ) const
inline

获取结果。

返回
宽字符串。

◆ GetResult() [2/2]

void CFX_UTF8Decoder::GetResult ( CFX_WideStringL &  result) const
inline

获取结果。

参数
[out]result接收结果的宽字符串。
返回
无。

◆ Input()

void CFX_UTF8Decoder::Input ( FX_BYTE  byte)

输入字节。

参数
[in]byte输入的字节。
返回
无。