
13 Feb
2011
13 Feb
'11
11:17 p.m.
On Sat, Feb 12, 2011 at 05:57, Chad Nelson <chad.thecomfychair@gmail.com> wrote:
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.
Seeing if a string will "fit", under various meanings: * wrapping (like 80-column console lines) * fixed-width fields (like ID3v1) Neither of which are things that are applicable at codepoint level :) I've never seen anything best done at codepoint level. Comparing, rendering, and storing text all are done at different non-codepoint levels.