Encoding | Kind | Type | Associated char- | Example | |
prefix | acter encoding | ||||
none | char | ordinary literal | 'v' | ||
multicharacter literal | int | encoding | 'abcd' | ||
L | wchar_t | wide literal | L'w' | ||
encoding | |||||
u8 | char8_t | UTF-8 | u8'x' | ||
u | char16_t | UTF-16 | u'y' | ||
U | char32_t | UTF-32 | U'z' |
character | |||
U+000a | line feed | \n | |
U+0009 | character tabulation | \t | |
U+000b | line tabulation | \v | |
U+0008 | backspace | \b | |
U+000d | carriage return | \r | |
U+000c | form feed | \f | |
U+0007 | alert | \a | |
U+005c | reverse solidus | \\ | |
U+003f | question mark | \? | |
U+0027 | apostrophe | \' | |
U+0022 | quotation mark | \" |