C++ Logo


Advanced search

Subject: Re: [SG16-Unicode] code_unit_sequence and code_point_sequence
From: Tom Honermann (tom_at_[hidden])
Date: 2018-08-03 09:10:46

On 08/03/2018 02:14 AM, Lyberta wrote:
> 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.

Ok, good, this is consistent with current SG16 discussion.


SG16 list run by sg16-owner@lists.isocpp.org