Macro wchar::include_wchz [−][src]
macro_rules! include_wchz { ($ty : ident, $string : literal) => { ... }; ($string : literal) => { ... }; }
Expand description
Generate a UTF-16 or UTF-32 wide string from a UTF-8 encoded file.
Validations are made that the given string does not contain nul characters.
The generated output takes the form of a slice of wide characters, with a nul-terminator as the last wide character.
The first argument is the output character type, if no type is specified the
platform native wchar_t
will be used.