Boost logo

Boost :

Subject: Re: [boost] [UTF String] UTF String library 1.5 ready for perusal
From: Scott McMurray ([hidden])
Date: 2011-02-14 11:02:46

On Mon, Feb 14, 2011 at 07:51, Nevin Liber <nevin_at_[hidden]> 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.


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.

Boost list run by bdawes at, gregod at, cpdaniel at, john at