Boost logo

Boost :

Subject: Re: [boost] [UTF String] UTF String library 1.5 ready for perusal
From: Scott McMurray (me22.ca+boost_at_[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.
>

+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.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk