Implementations of functionality related to National Language Support on Windows.
Functions
fn upcaseW(c: u16) u16
Cross-platform implementation of
ntdll.RtlUpcaseUnicodeChar
. Transforms the U…Cross-platform implementation of
ntdll.RtlUpcaseUnicodeChar
. Transforms the UTF-16 code unit inc
to its uppercased version if there is one. Otherwise, returnsc
unmodified.Note: When this function is referenced, it will need to include
uppercase_table.len * 2
bytes of data in the resulting binary since it depends on theuppercase_table
data. When targeting Windows,ntdll.RtlUpcaseUnicodeChar
can be used instead to avoid having to include a copy of this data.