3 ms·
' char8_t: A type for UTF-8 characters and strings, see N2231 ' What does this mean ? C11 already brought the u8 type
by The_rationalist 8y ago
' char8_t: A type for UTF-8 characters and strings, see N2231 '
What does this mean ? C11 already brought the u8 type
- rurban 8y agochar8_t is the type, u8 is just a prefix for constants, like u8"xxx"; And it's only in C11++, not C11 AFAIK.
- The_rationalist 8y agoYou are right, this is only for string litterals (so read only).But Wikipedia C11 mention the feature, what do you mean by c11++ ? Btw c17 added 0 feature.
- bumblebritches5 8y agou8 exists for string constants, but not character constants. they're proposing to add u8 as a character constant prefix.