Comment Comment by iv_08 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. parent iv_08 13 years ago
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.