News for hackers. Stuff that matters.
Re:Apple’s Use of Swift in iOS 13 by prewett on Friday September 27, 2019 @12:05PM (#21093430)
It was Xcode 10.2, I think. (10.something), I think that’s Xcode 5.

hasSuffix() doesn’t need UTF-8 to be performant, though. As long as both strings are both the same encoding, just go back len(suffix) bytes from the end of the string and memcmp to see if they are equal.

There are no comments on this comment yet.