C++ UTF-8 character literal
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo | name = C++ UTF-8 character literal | formattype = electronic | subcat = Data types | subcat2 = C++ data types | subcat3 = |...") |
|||
Line 24: | Line 24: | ||
Character literal must use single quotes preceding with the letter u8 (For example <code>u8'a'</code>). | Character literal must use single quotes preceding with the letter u8 (For example <code>u8'a'</code>). | ||
+ | |||
+ | ==External link== | ||
+ | * https://isocpp.org/files/papers/n4267.html | ||
[[Category:Symbolic data types]] | [[Category:Symbolic data types]] | ||
[[Category:Enumerable data types]] | [[Category:Enumerable data types]] | ||
[[Category:C++17 data types]] | [[Category:C++17 data types]] |
Revision as of 11:41, 11 May 2015
C++ UTF-8 character literal is a way to represent a single code point in UTF-8 that can be stored in char. It can legitimately be either an ASCII character from with the value 0–127 or C0 Controls Unicode block; if it falls outside of those allowed values, the program is considered to be malformed.
Character literal must use single quotes preceding with the letter u8 (For example u8'a'
).