
11 Feb
2011
11 Feb
'11
5:41 a.m.
On Thu, 10 Feb 2011 18:57:00 -0800 Scott McMurray <me22.ca+boost@gmail.com> wrote:
On Thu, Feb 10, 2011 at 16:52, Chad Nelson <chad.thecomfychair@gmail.com> 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?
The size in code-points *is* the size of the string, according to the view of the string that the class exposes. -- Chad Nelson Oak Circle Software, Inc. * * *