Foxit PDF SDK
CFX_WideStringC类 参考

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

继承自 CFX_Object .

被 CFX_WideStringL 继承.

Public 成员函数

 CFX_WideStringC ()
 构造空的常量字符串。
 
 CFX_WideStringC (const CFX_WideStringC &src)
 复制构造函数 更多...
 
 CFX_WideStringC (FX_LPCWSTR ptr)
 从字符串构造。 更多...
 
 CFX_WideStringC (FX_LPCWSTR ptr, FX_STRSIZE len)
 从字符串构造。 更多...
 
 CFX_WideStringC (FX_WCHAR &ch)
 从单个字符构造。 更多...
 
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= (const CFX_WideStringC &src)
 赋值(=)运算符重载。来自CFX_WideStringC对象。 更多...
 
CFX_WideStringCoperator= (FX_LPCWSTR src)
 赋值(=)运算符重载。来自字符串。 更多...
 
bool operator== (const CFX_WideStringC &str) const
 比较(==)运算符重载。区分大小写。 更多...
 
CFX_WideStringC Right (FX_STRSIZE count) const
 从此CFX_WideStringC对象中提取最后(最右边)count个宽字符作为子字符串。 更多...
 
字节字符串连接操作

连接操作符(+)的两边可以是:

  • 缓冲字节字符串(const CFX_ByteString&);
  • 非缓冲字节字符串(const CFX_ByteStringC&,即FX_BSTR);
  • 以零结尾的C风格字符串(FX_LPCSTR);
  • 单个字符或字节(FX_CHAR);
 CFX_WideStringC (const CFX_WideString &src)
 从宽字符串构造。 更多...
 
CFX_WideStringCoperator= (const CFX_WideString &src)
 赋值(=)运算符重载。来自CFX_ByteString对象。 更多...
 

详细描述

常量宽字符串类

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