Re:How the JVM compares strings on x86 using pcmpestri
by vardump on Sunday January 07, 2018 @04:27PM
(#16092843)
That can sure lead to interesting bugs!
Re:How the JVM compares strings on x86 using pcmpestri
by Const-me on Sunday January 07, 2018 @01:21PM
(#16091880)
Right. Same in C#, C++ STL, and in Apple’s obj-c/swift.
Re:How the JVM compares strings on x86 using pcmpestri
by tjalfi on Sunday January 07, 2018 @02:37PM
(#16092221)
Swift takes a different approach than Objective C[0].
[0] https://www.mikeash.com/pyblog/friday-qa-2015-11-06-why-is-s...
Java's String functions don't index by Unicode code points, though. Java strings are encoded in UCS-2, or at least the API needs to pretend that they are.