4 ms·
I have a feeling you might enjoy this code: https://github.com/zbraniecki/tinystr/blob/master/src/tinystr8.rs#L221 https://github.com/zbraniecki/tinystr/blob/ma
by raphlinus 6y ago
I have a feeling you might enjoy this code: https://github.com/zbraniecki/tinystr/blob/master/src/tinystr8.rs#L221 https://github.com/zbraniecki/tinystr/blob/master/src/tinyst...
I wrote this because I wanted (normalizing) locale comparisons to be super fast, as they can be part of the key for cache lookups of text layout. In a language identifier such as "en-Latn-US" the script is in title case.
So this kind of thing still does happen, just at the lowest levels of libraries that provide nice clean abstractions for other people to use.