Foxit PDF SDK
CFX_CharMap结构体 参考

静态 Public 成员函数

static CFX_CharMapGetDefaultMapper (FX_INT32 codepage=0)
 根据Windows代码页或其他编码系统获取字符映射器。 这些字符映射由FXAPI管理,请勿销毁它们。 更多...
 

Public 属性

CFX_ByteString(* m_GetByteString )(CFX_CharMap *pMap, const CFX_WideString &wstr)
 GetByteString函数的指针类型。 更多...
 
FX_INT32(* m_GetCodePage )()
 GetCodePage函数的指针类型。该函数返回平台的代码页。 更多...
 
CFX_WideString(* m_GetWideString )(CFX_CharMap *pMap, const CFX_ByteString &bstr)
 GetWideString函数的指针类型。 更多...
 

详细描述

字符映射(编码)的抽象类。 所有字符映射都应具有在内部编码和Unicode之间转换的能力。

成员函数说明

◆ GetDefaultMapper()

static CFX_CharMap* CFX_CharMap::GetDefaultMapper ( FX_INT32  codepage = 0)
static

根据Windows代码页或其他编码系统获取字符映射器。 这些字符映射由FXAPI管理,请勿销毁它们。

这是根据区域设置的系统默认映射器。

参数
[in]codepage代码页。
返回
字符映射器。

类成员变量说明

◆ m_GetByteString

CFX_ByteString(* CFX_CharMap::m_GetByteString) (CFX_CharMap *pMap, const CFX_WideString &wstr)

GetByteString函数的指针类型。

该函数根据字符映射器将宽字符串转换为字节字符串。
函数原型为:CFX_ByteString GetByteString(CFX_CharMap* pMap, const CFX_WideString& wstr);

参数
[in]pMap字符映射器。
[in]wstr宽字符串。
返回
字节字符串。

◆ m_GetCodePage

FX_INT32(* CFX_CharMap::m_GetCodePage) ()

GetCodePage函数的指针类型。该函数返回平台的代码页。

返回
该函数返回平台的代码页。

◆ m_GetWideString

CFX_WideString(* CFX_CharMap::m_GetWideString) (CFX_CharMap *pMap, const CFX_ByteString &bstr)

GetWideString函数的指针类型。

该函数根据字符映射器将字节字符串转换为宽字符串。
函数原型为: CFX_WideString GetWideString(CFX_CharMap* pMap, const CFX_ByteString& bstr);

参数
[in]pMap字符映射器。
[in]bstr字节字符串。
返回
宽字符串。