摘要: #include iostream#include stringusing namespace std;static char convert(wchar_t n);static bool In(wchar_t start, wchar_t end, wchar_t code);int main(int argc, char* argv[]){string sChinese = "我爱中国"; // 输入的字符串char chr[3];wchar_t wchr = 0;char* buff = new char[sChinese.length()/2];memset(buff, 0x0 阅读全文
posted @ 2011-01-19 12:55 木子你妹 阅读(2412) 评论(0) 推荐(0) 编辑
摘要: //--------------------------------------------------------------获取短字符8位的 汉字拼音------------------------------------------------ TBuf128 aInfo1(L"KErrNone"); TBuf128 aInfo2(L"KErrNotSupported"); _LIT8(KStrTest,"郑州"); HBufC* pTest = NHelper::ConvGbk2UniL(KStrTest); //此函数定义在别的文件中,功能是把KStrTest短字符转换为GB 阅读全文
posted @ 2011-01-19 12:54 木子你妹 阅读(366) 评论(0) 推荐(0) 编辑