5
Lexical conventions
[lex]
5.13
Literals
[lex.literal]
5.13.3
Character literals
[lex.ccon]
Table 9: Character literals
[tab:lex.ccon.literal]
🔗
Encoding
Kind
Type
Associated char-
Example
🔗
prefix
acter encoding
🔗
none
ordinary character literal
char
ordinary literal
'v'
🔗
multicharacter literal
int
encoding
'abcd'
🔗
L
wide character literal
wchar_
t
wide literal
L'w'
🔗
encoding
🔗
u8
UTF-8 character literal
char8_
t
UTF-8
u8'x'
🔗
u
UTF-16 character literal
char16_
t
UTF-16
u'y'
🔗
U
UTF-32 character literal
char32_
t
UTF-32
U'z'