|
|
|
|
|
by prewett
2459 days ago
|
|
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. |
|