C++各类字符串常量的表示方法

来源:互联网 发布:mac用什么安卓模拟器 编辑:程序博客网 时间:2024/06/05 17:50
"ANSI string"
- 无前缀表示AnsiString,每个字符1个Byte

L"Wide-character string" 
- 前缀L表示WideString,每个字符2个Byte,主要用于COM,无引用计数功能

u"UTF-16 string"         
- 前缀u表示UTF-16编码的字符串UnicodeString,即缺省的String,每个字符2个Byte,有引用计数功能

U"UTF-32 string"         
- 前缀U表示UTF-32编码的字符串,每个字符4个Byte
0 0
原创粉丝点击