Your original version of the function was broken so you fixed it, yet you continue to argue that my criticism of its brokenness was wrong. It wasn't wrong. It was spot on.
You made your version of length_in_grapheme_clusters() patently more like Tom's version when you fixed it. You even used the same scalar variable name, $length, that I used in my script!
In reply to Re^7: Trying to determine the output length of a Unicode string
by Jim
in thread Trying to determine the output length of a Unicode string
by pierswalter
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |