News for hackers. Stuff that matters.
Re:UTF-8 – "The most elegant hack" by iv_08 on Sunday September 29, 2013 @06:04AM (#6464705)
For index based operations code units are more useful than code points.

a = s.indexOf("e̬̱ͤ̈́̿̂̅́͟")

b = s.indexOf("m̛̮̩͙ͦ͗͆̄̋́̄")

s[a:b]

This operation is fast with code unit indices and slow with code point indices.

There are no comments on this comment yet.