阅读背景:

c++11 string u8_在C ++ 11中缺少std :: u8string_weixin_39581945的博客

来源:互联网 

UTF-8 is the only text encoding mandated to be supported by the C++ standard for which there is no distinct code unit type. Lack of a distinct type for UTF-8 encoded character and string literals prevents the use of overloading and template specialization in interfaces designed for interoperability with encoded text. The inability to infer an encoding for narrow characters and strings limits design possibilities and hinders the production of elegant interfaces that work seemlessly in generic code. Library authors must choose to limit encoding support, design interfaces that require users to explicitly specify encodings, or provide distinct interfaces for, at least, the implementation defined execution and UTF-8 encodings.UTF-8 is the only text encoding mandated to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: