Skip to main content

Module strings

Module strings 

Source
Expand description

Shared UTF-16 and wide-string conversion helpers.

Functionsยง

pwstr_to_string
Convert a NUL-terminated PWSTR into String.
pwstr_to_string_len
Convert a PWSTR with an explicit UTF-16 code-unit length into String.
to_utf16
Encode UTF-8 text into UTF-16 code units without a trailing NUL.
to_utf16_nul
Encode UTF-8 text into UTF-16 code units with a trailing NUL terminator.
to_utf16_nul_in
Fill a caller-provided UTF-16 buffer with text plus a trailing NUL terminator.