我目前正在处理一个使用std::string和char进行字符串操作的应用程序--这在 Linux 上是很好的,因为对Unicode是不可知的(或者看起来是这样的;我真的不知道,所以如果我在这里讲故事,}
但是,如果thisdata包含unicode字符,它将被错误地显示在windows上,因为std::string无法在Windows上保存<e
在标准中间接禁止使用可变长度编码。标准的以下部分是如何处理的?问题:If pos < size(), returns data()[pos].Otherwise, the behavior is undefined.如何实现operator[],以及返回什么?标准:operator[]
Returns: a count of the number of char-like objects currently in the