[SG16-Unicode] code_unit_sequence and code_point_sequence
Lyberta
lyberta at lyberta.net
Fri Aug 3 07:18:00 CEST 2018
OK. I withdraw code_unit_sequence proposal but I think
code_point_sequence is still very relevant. Consider this:
std::code_point_sequence cps{u8"Test"};
for (const auto cp : cps)
{
std::cout << std::code_point_name(cp) << '\n';
}
Output:
LATIN CAPITAL LETTER T
LATIN SMALL LETTER E
LATIN SMALL LETTER S
LATIN SMALL LETTER T
This fragment will be used pretty much everywhere when teaching C++ and
Unicode.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
Url : http://www.open-std.org/pipermail/unicode/attachments/20180803/12eb61a0/attachment.bin
More information about the Unicode
mailing list