Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on UTF-8 – "The most elegant hack". Parent comment
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.
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.