Hi all! Is there a specific reason why
to_ascii_lowercase, and friends are implemented for
u8 but not for
Would a PR to provide similar implementations for
u16 be accepted upstream?
The Windows as well as the UEFI world use UTF-16 strings extensively, which makes it hard at times to interact with UTF-8 strings in Rust code.
On the other hand, Rust implements
str::encode_utf16 since 1.8.0, so these issues shouldn't be unknown to you.
I take it that the methods were originally implemented to match
ctype.h from C (<ctype.h> functions for AsciiExt · Issue #39658 · rust-lang/rust · GitHub). An implementation on
u16 would thereby match C's