Re: unicode length
- Posted by SDPringle Feb 07, 2020
- 1115 views
Take a look at the Euphoria Unicode branch of the SCM. Also, ulength would give the wrong result for things like a sequence of bus numbers, or temperatures. For utf32, the generic sequence functions should work out of the box, which is probably why Derek was/is an advocate for using this encoding for actually working with strings. You can prefix them or not and put them all together in one file called utf8.e .
include utf8.e as u8 ? u8:ulength("Hello")
I think it would probably drive me crazy if it were named length() though. ;)