C++ Logo


Advanced search

Re: [SG16-Unicode] code_unit_sequence and code_point_sequence

From: Martinho Fernandes <rmf_at_[hidden]>
Date: Tue, 19 Jun 2018 13:43:06 +0200

On 19.06.18 13:33, Martinho Fernandes wrote:

text_view and
code_point_sequence shouldn't take encoding schemes as template
parameters, only encoding forms. Essentially, TextEncoding is as
horrible as std::basic_string in its design.

Also, for clarity, I'll mention again that that all encoding schemes without BOM fit the definition of encoding forms.
Anything that supports encoding forms will implicitly support BOM-less encoding schemes. It seems arbitrary to me
to support encoding forms *except for a few select ones*.

Received on 2018-06-19 13:44:32