3 ms·
> When is the last time you wrote code that really needed to iterate Unicode code points specifically? We do it all the time. Splitting a string at U+002C or U
by cesarb 7y ago
> When is the last time you wrote code that really needed to iterate Unicode code points specifically?
We do it all the time. Splitting a string at U+002C or U+003B or U+000A, looking for U+007B or U+007D, etc. In my experience, it's really common.
- raphlinus 7y agoRight, and if you're doing processing of ASCII code points (this is 95% of Markdown parsing, for example, the major exception being case folding and Unicode whitespace), then it's just as convenient to do those in UTF-8 as any other representation.
- a1369209993 7y agoThose aren't unicode code points; those are bytes.
- garmaine 7y agoNot on a UTF-16 platform.