|
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-10 21:57:00
On Thu, Feb 10, 2011 at 16:52, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
>
>On Fri, 11 Feb 2011 00:07:58 +0100 Mathias Gaunard <mathias.gaunard_at_[hidden]> wrote:
>>
>> The size in code points is not a very useful thing in general.
>>
>
> On the contrary, keeping track of the length of the string is *very*
> useful. The alternative is to calculate it on the fly, whenever someone
> asks for it. If you want that, you can always go back to using C-style
> strings.
>
I understand why it's useful to know how long it is in encoding units,
but the number of code points seems quite useless to me.
Can you elaborate?
~ Scott
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk