4 ms·
> Case sensitivity is unnatural and weird; Case sensitivity is naive and simple, case-insensitive systems are complex and require Case Mappings [1] and Normali
by ElectricalUnion 3y ago
> Case sensitivity is unnatural and weird;
Case sensitivity is naive and simple, case-insensitive systems are complex and require Case Mappings [1] and Normalization [2] and those are ugly, unless you want a half-assed system that is case-insensitive only when you only use ASCII.
[1] https://unicode-org.github.io/icu/userguide/transforms/casemappings.html https://unicode-org.github.io/icu/userguide/transforms/casem...
> There are different case mappings for different locales. For instance, unlike English, the character Latin small letter ‘i’ in Turkish has an equivalent Latin capital letter ‘I’ with dot above ( \u0130 ‘İ’).
> In general:
> case mapping can change the number of code points and/or code units of a string,
> is language-sensitive (results may differ depending on language), and
> is context-sensitive (a character in the input string may map differently depending on surrounding characters).
[2] https://unicode-org.github.io/icu/userguide/transforms/normalization/ https://unicode-org.github.io/icu/userguide/transforms/norma...