[SG16-Unicode] code_unit_sequence and code_point_sequence

Lyberta lyberta at lyberta.net
Fri Aug 3 08:14:00 CEST 2018


Tom Honermann:
> Text_view supports (C++17) range-based-for as you used it above today. 
> See https://github.com/tahonermann/text_view#overview. Support for code
> point properties is still missing though.  I think a key difference is
> that you intend code_point_sequence to be a container (not a view).  If
> so, I still prefer a more abstract std::text type that supports code
> point (and code unit and EGC) enumeration.
> 
> Tom.

text and text_view are supposed to work with grapheme clusters.
code_point_sequence and code_point_sequence_view work with code points.

the range-for behavior is different if text contains diacritics and
other combining characters.

I expect text and text_view to have to_code_points() member function
that will return either code_point_sequence or code_point_sequence_view.

-------------- 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/41286ef3/attachment.bin 


More information about the Unicode mailing list