
12 Feb
2011
12 Feb
'11
1:57 p.m.
On Fri, 11 Feb 2011 20:23:58 -0800 Scott McMurray <me22.ca+boost@gmail.com> wrote:
On Thu, Feb 10, 2011 at 21:41, Chad Nelson <chad.thecomfychair@gmail.com> wrote:
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?
The size in code-points *is* the size of the string, according to the view of the string that the class exposes.
Ok, but what would I actually want to use that for?
What do you use string.length() for? :-) Efficiently providing an answer to that is one of several things the UTF string classes keep track of it for. -- Chad Nelson Oak Circle Software, Inc. * * *