Silly Sunday question
posted 11 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
I was looking through the "ignore case" comparisons for String recently, and discovered that unless it's a full Unicode check (ie, including surrogate pairs) they all check upper case first, then lower, only if the uppercase values are equal.
Anyone care to guess why that might be the case? I presume they had their reasons.
Winston
Anyone care to guess why that might be the case? I presume they had their reasons.
Winston
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
posted 11 years ago
-
1 -
-
Number of slices to send:Optional 'thank-you' note:
-
-
Possibly because of the quirkiness of some locales wrt. uppercase and lowercase: http://java.sys-con.com/node/46241
posted 11 years ago
Ah. That might be it. There was a mention in the code about Turkish, but no explanation as to why (or any link).
Cheers for that.
Winston
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
Ulf Dittmer wrote:Possibly because of the quirkiness of some locales wrt. uppercase and lowercase: http://java.sys-con.com/node/46241
Ah. That might be it. There was a mention in the code about Turkish, but no explanation as to why (or any link).
Cheers for that.
Winston
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
| Did you miss me? Did you miss this tiny ad? The new gardening playing cards kickstarter is now live! https://www.kickstarter.com/projects/paulwheaton/garden-cards |











