24 Jul
2009
24 Jul
'09
5:59 p.m.
Scott McMurray wrote:
Can you elaborate an example of a situation in which you actually need to know the length of the string (in codepoints) in the first place? Everything I can think of that might would be better done with a regex anyways.
The length of a unicode string isn't particularly interesting anyway, since simple characters like 'รค' can be encoded as either a single code point or multiple code points. -- Rainer Deyke - rainerd@eldwood.com