
14 Feb
2011
14 Feb
'11
4:02 p.m.
On Mon, Feb 14, 2011 at 07:51, Nevin Liber <nevin@eviloverlord.com> wrote:
Please pick a different name. size() and length() are synonyms as far as std::string is concerned; changing that would cause needless frustration for users migrating to a different string class.
+1 Though perhaps the right way to solve this would be to have the string class only directly expose things that work equivalently at the code unit, code point, or grapheme cluster level, even if that means only copying, exact equality, and concatenation -- no iteration, length, etc without looking at an encoding or grouping explicitly. Let all the other operations use whatever view they prefer.