Exactly!
Which is why I was careful to write "there are at least three valid, meaningful ways to measure the size of [Unicode] text."
See Unicode Standard Annex #11: EAST ASIAN WIDTH and Unicode Standard Annex #14: Unicode Line Breaking Algorithm for the gory details. Use Unicode::LineBreak and Unicode::GCString in your Perl programs.
In reply to Re^7: substr function
by Jim
in thread substr function
by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |