Subject: Re: [boost] [string] proposal
From: Ivan Le Lann (ivan.lelann_at_[hidden])
Date: 2011-01-21 08:39:30


----- "Matus Chochlik" <chochlik_at_[hidden]> wrote :

> Also I've uploaded into the vault file string_proposal.zip

Not that I have anything against UTF-8, but is there no way
to build this utf8 string class out of an encoding generic one ?

Keeping your "utils" vocabulary, I see something like :

template <typename encoding_utils> class encoded_string;
typedef encoded_string <utf8_utils> string; // and/or utf8_string

In your code, that would mean to at least move various typedefs
into encoding_utils, such as code point and code unit type.
And to rename various methods, of course.

Regards,
Ivan.