摘要: https://github.com/cocos2d-x/cocos2dx-win8/blob/master/cocos2dx/platform/CCCommon.cppstd::wstringCCUtf8ToUnicode(constchar * pszUtf8Str,unsigned len/* = -1*/){ std::wstringret; do { if (!pszUtf8Str) break;// get UTF8 string lengthif (-1== len){len = strlen(pszUtf8Str);} if (len<= 0) break;// get 阅读全文
posted @ 2012-09-24 21:40 sinian 阅读(198) 评论(0) 推荐(0) 编辑
摘要: https://github.com/cocos2d-x/cocos2dx-win8/blob/master/cocos2dx/platform/CCCommon.cppstd::wstringCCUtf8ToUnicode(constchar* pszUtf8Str,unsignedlen/* = -1*/){ std::wstringret; do { if (!pszUtf8Str)break;// get UTF8 string lengthif (-1==len){len = strlen(pszUtf8Str);} if (len<=0) break;// get UTF16 阅读全文
posted @ 2012-09-24 21:40 sinian 阅读(368) 评论(0) 推荐(0) 编辑