News for hackers. Stuff that matters.
Re:UTF-8 String Indexing Strategies by gpderetta on Thursday May 30, 2019 @07:47AM (#20050189)
a code unit with value 0-127 always maps to a single code point, i.e. it is never part of a multibyte character. It also maps 1:1 to ASCII values. So, if you are looking for specific characters in the ASCII code set, it is perfectly fine to iterate one byte at a time on an utf-8 string.

There are no comments on this comment yet.