Foxit PDF SDK
CFX_WideStringC类 参考

常量宽字符串类 更多...

继承自 CFX_Object .

被 CFX_WideStringL 继承.

Public 成员函数

 CFX_WideStringC ()
 构造空的常量字符串。
 
 CFX_WideStringC (FX_LPCWSTR ptr)
 从字符串构造。 更多...
 
 CFX_WideStringC (FX_WCHAR &ch)
 从单个字符构造。 更多...
 
 CFX_WideStringC (FX_LPCWSTR ptr, FX_STRSIZE len)
 从字符串构造。 更多...
 
 CFX_WideStringC (const CFX_WideStringC &src)
 复制构造函数 更多...
 
 CFX_WideStringC (const CFX_WideString &src)
 从宽字符串构造。 更多...
 
FX_WCHAR GetAt (FX_STRSIZE index) const
 检索由索引号指定的单个字节。 更多...
 
FX_STRSIZE GetLength () const
 获取字节字符串的长度。 更多...
 
FX_LPCWSTR GetPtr () const
 获取指向宽字符串的常量宽字符串指针。 更多...
 
bool IsEmpty () const
 判断当前字符串对象是否为空。 更多...
 
CFX_WideStringC Left (FX_STRSIZE count) const
 从此CFX_WideStringC对象中提取第一个(最左边)count个宽字符作为子字符串。 更多...
 
CFX_WideStringC Mid (FX_STRSIZE index, FX_STRSIZE count=-1) const
 从此CFX_WideStringC对象中提取长度为count字节的子字符串,从位置index(基于零)开始。 更多...
 
bool operator != (const CFX_WideStringC &str) const
 比较(!=)运算符重载。区分大小写。 更多...
 
CFX_WideStringCoperator= (FX_LPCWSTR src)
 赋值(=)运算符重载。来自字符串。 更多...
 
CFX_WideStringCoperator= (const CFX_WideStringC &src)
 赋值(=)运算符重载。来自CFX_WideStringC对象。 更多...
 
CFX_WideStringCoperator= (const CFX_WideString &src)
 赋值(=)运算符重载。来自CFX_ByteString对象。 更多...
 
bool operator== (const CFX_WideStringC &str) const
 比较(==)运算符重载。区分大小写。 更多...
 
CFX_WideStringC Right (FX_STRSIZE count) const
 从此CFX_WideStringC对象中提取最后(最右边)count个宽字符作为子字符串。 更多...
 

详细描述

常量宽字符串类

常量宽字符串,它不包含缓冲区,因此其内容不能直接更改。

构造及析构函数说明

◆ CFX_WideStringC() [1/4]

CFX_WideStringC::CFX_WideStringC ( FX_LPCWSTR  ptr)
inline

从字符串构造。

参数
[in]ptr指向常量字符串的指针,字符串必须以空字符结尾。

◆ CFX_WideStringC() [2/4]

CFX_WideStringC::CFX_WideStringC ( FX_WCHAR ch)
inline

从单个字符构造。

参数
[in]ch单个字符。

◆ CFX_WideStringC() [3/4]

CFX_WideStringC::CFX_WideStringC ( FX_LPCWSTR  ptr,
FX_STRSIZE  len 
)
inline

从字符串构造。

参数
[in]ptr指向常量字符串的指针。
[in]len字符串的长度。对于以空字符结尾的字符串,可以为-1。

◆ CFX_WideStringC() [4/4]

CFX_WideStringC::CFX_WideStringC ( const CFX_WideStringC src)
inline

复制构造函数

参数
[in]srcCFX_WideStringC对象的常量引用。

成员函数说明

◆ GetAt()

FX_WCHAR CFX_WideStringC::GetAt ( FX_STRSIZE  index) const
inline

检索由索引号指定的单个字节。

参数
[in]index指定字节字符串中基于零的索引。
返回
单个字节。

◆ GetLength()

FX_STRSIZE CFX_WideStringC::GetLength ( ) const
inline

获取字节字符串的长度。

返回
字节字符串的长度。

◆ GetPtr()

FX_LPCWSTR CFX_WideStringC::GetPtr ( ) const
inline

获取指向宽字符串的常量宽字符串指针。

返回
指向宽字符串的常量宽字符串指针。

◆ IsEmpty()

bool CFX_WideStringC::IsEmpty ( ) const
inline

判断当前字符串对象是否为空。

返回
true表示当前字符串对象为空,false表示不为空。

◆ Left()

CFX_WideStringC CFX_WideStringC::Left ( FX_STRSIZE  count) const
inline

从此CFX_WideStringC对象中提取第一个(最左边)count个宽字符作为子字符串。

参数
[in]count期望为子字符串提取的宽字符数。
返回
CFX_WideStringC子字符串。

◆ Mid()

CFX_WideStringC CFX_WideStringC::Mid ( FX_STRSIZE  index,
FX_STRSIZE  count = -1 
) const
inline

从此CFX_WideStringC对象中提取长度为count字节的子字符串,从位置index(基于零)开始。

参数
[in]index指定CFX_WideStringC对象中基于零的索引。
[in]count指定要从此CFX_WideStringC对象中提取的字节数。
返回
引用子字符串的CFX_WideStringC对象。

◆ operator !=()

bool CFX_WideStringC::operator != ( const CFX_WideStringC str) const
inline

比较(!=)运算符重载。区分大小写。

参数
[in]strCFX_WideStringC对象的常量引用。
返回
true表示不相等,false表示相等。

◆ operator=() [1/2]

CFX_WideStringC& CFX_WideStringC::operator= ( FX_LPCWSTR  src)
inline

赋值(=)运算符重载。来自字符串。

参数
[in]src指向常量字符串的指针。
返回
当前对象本身的引用。

◆ operator=() [2/2]

CFX_WideStringC& CFX_WideStringC::operator= ( const CFX_WideStringC src)
inline

赋值(=)运算符重载。来自CFX_WideStringC对象。

参数
[in]srcCFX_ByteStringC对象的常量引用。
返回
当前对象本身的引用。

◆ operator==()

bool CFX_WideStringC::operator== ( const CFX_WideStringC str) const
inline

比较(==)运算符重载。区分大小写。

参数
[in]strCFX_ByteStringC对象的常量引用。
返回
true表示相等,false表示不相等。

◆ Right()

CFX_WideStringC CFX_WideStringC::Right ( FX_STRSIZE  count) const
inline

从此CFX_WideStringC对象中提取最后(最右边)count个宽字符作为子字符串。

参数
[in]count期望为子字符串提取的宽字符数。
返回
CFX_WideStringC子字符串。