Macro wchar::include_wch [−][src]
include_wch!() { /* proc-macro */ }
Expand description
Generate a UTF-16 or UTF-32 wide string from a UTF-8 encoded file.
The generated output takes the form of a slice of wide characters.
The first argument is the output character type, if no type is specified the
platform native wchar_t
will be used.
Notes
Whilst this macro can be used for C-style nul-terminated wide strings, no
validations are made about internal nul characters. If your strings need to
be nul-terminated it is recommended to use include_wchz
.