5 ms·
So I'm going to be that guy and say it: Man, I'm happy we don't need to deal with this crap in Rust, and we can just use String::to_lowercase. Not having to wo
by PoignardAzur 2y ago
So I'm going to be that guy and say it:
Man, I'm happy we don't need to deal with this crap in Rust, and we can just use String::to_lowercase. Not having to worry about things makes coding fun.
- lilyball 2y agoWhile certainly much better, you still need to be aware that doing case conversion absent any locale information will never be perfect. If you want proper locale-aware conversion you can use the icu crate (https://docs.rs/icu/latest/icu/ https://docs.rs/icu/latest/icu/).
- account42 2y agoExactly, simple "unicode-aware" case conversions are a trap. You are always going to need much more.