c++的wstring,基于的wchar_t 在linux上是4字节的
sizeof wchar_t. Unlike Windows UTF-16 2-byte wide chars, wchar_t on Linux and OS X is 4 bytes UTF-32 (gcc/g++ and XCode).
ucs2是unicode的子集,编码上。
sizeof wchar_t. Unlike Windows UTF-16 2-byte wide chars, wchar_t on Linux and OS X is 4 bytes UTF-32 (gcc/g++ and XCode).
ucs2是unicode的子集,编码上。