YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::Text::String类 参考

YSLib 标准字符串(使用 UCS-2 作为内部编码)。 更多...

#include <ystring.h>

类 YSLib::Text::String 继承关系图:
YSLib::Text::String 的协作图:

Public 成员函数

 DefDeCtor (String) DefDeCopyCtor(String) DefDeMoveCtor(String) String(const ucs2_t *s)
 无参数构造:默认实现。 更多...
 
template<typename _tChar >
 String (const _tChar *s, Encoding enc=CS_Default)
 构造:使用字符指针表示的 NTCTS 和指定编码。 更多...
 
 String (const ucs2string &s)
 构造:使用 YSLib 基本字符串。 更多...
 
 String (ucs2string &&s)
 构造:使用 YSLib 基本字符串右值引用。 更多...
 
template<typename _tChar >
 String (const std::basic_string< _tChar > &s, Encoding enc=CS_Default)
 构造:使用指定字符类型的 std::basic_string 和指定编码。 更多...
 
 DefDeDtor (String) DefDeCopyAssignment(String) DefDeMoveAssignment(String) String &operator*
 复制赋值:默认实现。 更多...
 
 PDefH (string, GetMBCS, Encoding enc=CS_Default) const ImplRet(GetMBCSOf< string >(*this
 取指定编码的多字节字符串。 更多...
 

详细描述

YSLib 标准字符串(使用 UCS-2 作为内部编码)。

警告
非虚析构。
自从
早于 build 132

在文件 ystring.h47 行定义.

构造及析构函数说明

template<typename _tChar >
YSLib::Text::String::String ( const _tChar *  s,
Encoding  enc = CS_Default 
)
inline

构造:使用字符指针表示的 NTCTS 和指定编码。

自从
build 281

在文件 ystring.h73 行定义.

YSLib::Text::String::String ( const ucs2string s)
inline

构造:使用 YSLib 基本字符串。

在文件 ystring.h79 行定义.

YSLib::Text::String::String ( ucs2string &&  s)
inline

构造:使用 YSLib 基本字符串右值引用。

自从
build 285

在文件 ystring.h86 行定义.

template<typename _tChar >
YSLib::Text::String::String ( const std::basic_string< _tChar > &  s,
Encoding  enc = CS_Default 
)
inline

构造:使用指定字符类型的 std::basic_string 和指定编码。

自从
build 281

在文件 ystring.h94 行定义.

成员函数说明

YSLib::Text::String::DefDeCtor ( String  ) const
inline

无参数构造:默认实现。

复制构造:默认实现。

转移构造:默认实现。

构造:使用 UCS-2 字符指针表示的等宽 NTCTS 。

在文件 ystring.h53 行定义.

YSLib::Text::String::DefDeDtor ( String  )

复制赋值:默认实现。

自从
build 295

转移赋值:默认实现。

自从
build 295

重复串接。

自从
build 413
YSLib::Text::String::PDefH ( string  ,
GetMBCS  ,
Encoding  enc = CS_Default 
) const

取指定编码的多字节字符串。

自从
build 287

该类的文档由以下文件生成: