winrt-rust icon indicating copy to clipboard operation
winrt-rust copied to clipboard

Find a way to have 16-bit string literals

Open Boddlnagg opened this issue 7 years ago • 0 comments

Unfortunately all string literals passed to WinRT are stored in UTF8 and must first be converted to 16-bit. (wide string). This probably requires a Rust language feature (C++ has L"xxx" literals), but we might be able to do something with const fn, when they support allocation, which might come some time in the future.

Boddlnagg avatar Feb 25 '17 21:02 Boddlnagg