2012年8月7日
摘要: +(NSString*)getStringFromWChar:(const wchar_t*) inStr{ setlocale(LC_CTYPE, "UTF-8"); int strLength = wcslen(inStr); int bufferSize = (strLength+1)*4; char *stTmp = (char*)malloc(bufferSize); memset(stTmp, 0, bufferSize); wcstombs(stTmp, inStr, strLength); NSString* ret = [[[NSStringalloc] 阅读全文
posted @ 2012-08-07 11:27 文鬼 阅读(1794) 评论(0) 推荐(0) 编辑