28 #ifndef YSL_INC_Core_ystring_h_
29 #define YSL_INC_Core_ystring_h_ 1
32 #include YFM_YSLib_Core_YObject
33 #include YFM_YSLib_Adaptor_YContainer
34 #include YFM_YSLib_Adaptor_YTextBase
72 template<
typename _tChar>
93 template<
typename _tChar>
#define DefDeDtor(_t)
定义默认析构函数。
yconstexpr Encoding CS_Default
默认字符编码。
#define DefDeCopyCtor(_t)
DefDeCtor(String) DefDeCopyCtor(String) DefDeMoveCtor(String) String(const ucs2_t *s)
无参数构造:默认实现。
String(const _tChar *s, Encoding enc=CS_Default)
构造:使用字符指针表示的 NTCTS 和指定编码。
GSStringTemplate< CHRLib::ucs2_t >::basic_string ucs2string
String(const std::basic_string< _tChar > &s, Encoding enc=CS_Default)
构造:使用指定字符类型的 std::basic_string 和指定编码。
YSLib 标准字符串(使用 UCS-2 作为内部编码)。
#define DefDeMoveCtor(_t)
String(ucs2string &&s)
构造:使用 YSLib 基本字符串右值引用。
char16_t ucs2_t
UCS-2 字符类型。
#define DefDeMoveAssignment(_t)
_tDst MakeUCS2LEString(const char *s, Encoding enc=CS_Default)
复制指定编码的多字节字符串为指定类型的 UCS-2 字符串。
_tDst GetMBCSOf(const _tSrc &src, Encoding enc=CS_Default)
取 UCS-2 字符串转换的指定编码的多字节字符串。
String(const ucs2string &s)
构造:使用 YSLib 基本字符串。
#define DefDeCopyAssignment(_t)