Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大神解释下basic_string_util.h 头文件中u8tou16 和u16tou8 这两个函数的意义 #111

Open
forever1dream opened this issue Mar 8, 2018 · 1 comment

Comments

@forever1dream
Copy link

请问u16tou8 和u8tou16 这两个函数转成的是什么编码啊,这里没看明白,还有这个定义的是什么类型,求解释typedef uint16_t UnicodeCharT;typedef std::basic_string UnicodeStr;

@yuimo
Copy link

yuimo commented Mar 8, 2018

u16是为了方便C++中的汉字处理,一个u16 char可表示一个汉字。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants