摘要:
1. 如何取得一个既包含单字节字符又包含双字节字符的字符串的字符个数?可以调用Microsoft Visual C++的运行期库包含函数_mbslen来操作多字节(既包括单字节也包括双字节)字符串。调用strlen函数,无法真正了解字符串中究竟有多少字符,它只能告诉你到达结尾的0之前有多少个字节。2. 如何对DBCS(双字节字符集)字符串进行操作?函数 描述PTSTR CharNext ( LPC... 阅读全文
posted @ 2010-03-30 17:53
至善若水
阅读(98)
评论(0)
推荐(0)
摘要:
字符串转数字1.CRT函数 ASCII UNICODE TCHAR VS2005 int atoi _wtoi _tstoi _ttoi _atoi_l _wtoi_l long atol _wtol _tstoi _ttoi _atoi_l _wtoi_l __int64 _atoi64 _wtoi64 _tstoi64 _ttoi64 _atoi64_l _wtoi64_l float _at... 阅读全文
posted @ 2010-03-30 17:00
至善若水
阅读(416)
评论(0)
推荐(0)
浙公网安备 33010602011771号