3 ms·
Yes, but string equivalence in Unicode is a hairy mess even without cases. You get all kinds of bits where two characters are semantically and visually identic
by Pxtl 8y ago
Yes, but string equivalence in Unicode is a hairy mess even without cases. You get all kinds of bits where two characters are semantically and visually identical but are different points. Raw binary comparison of Unicode without normalizing first is a bad idea even without cases.
Folding the cases is a continuation of the normalization operation you were going to do anyways.
- cryptonector 8y agoYou need more tables for case folding. Also, case-folding doesn't round-trip in Unicode. In particular, only to-lower-case conversions work well enough. Case is a mistake. Case-insensitivity is another mistake though. Don't do it. It's a pain for users (me, for example).