摘要: 1. 对于 mbs(multi-byte-string) 而言, 在 string 中的 size 返回的是所占字节的大小.2. 某些字符 mbs 是无法表示的. 比如 “𪚥” 这样字符. Vs 2008/2012 中的 mbs(std::string 以及 vc 9 中 atl 的 CString), 对于无法转换的字符都以 3f 填充. 下图以 std::string 为例.3. 之前发的连接中给的算法是对的: http://blog.csdn.net/wallaceli1981/article/details/5740618对于 wcstombs 需要 4 倍于原 wcs 阅读全文
posted @ 2013-06-22 15:47 walfud 阅读(2101) 评论(1) 推荐(0) 编辑