News for hackers. Stuff that matters.
Re:Emoji Under the Hood by RedNifre on Friday March 26, 2021 @04:59AM (#26590042)
Maybe have m,n refer to grapheme clusters instead of bytes/code points?
Re:Emoji Under the Hood by mojuba on Friday March 26, 2021 @05:14AM (#26590121)
Apparently it's what Swift does when you try to get the length of a string. Though there's no more plain substring() since Swift 5, it was removed to indicate it's no longer O(1). You will get different results across languages though.