
21 Jan
2011
21 Jan
'11
1:39 p.m.
----- "Matus Chochlik" <chochlik@gmail.com> 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.