Syntactic Confectionery Delight | |
PerlMonks |
Re: The “real length" of UTF8 stringsby moritz (Cardinal) |
on Sep 23, 2008 at 20:30 UTC ( [id://713302]=note: print w/replies, xml ) | Need Help?? |
As a first approximation you can loop over the characters, and add 0 for combining characters, 1 for "normal" one and 2 for characters in the Han script block.
That could use much more tweaking, but maybe it's a start for you.
In Section
Seekers of Perl Wisdom
|
|