Macro sciter::s2w
[−]
[src]
macro_rules! s2w { ($s:expr) => { ... }; }
Rust string to UTF-16 conversion. See also utf::w2s
.
Example:
let (cwstr, len) = s2w!("hello"); // Vec<u16>
libc::printf("%.*ws", len, cwstr.as_ptr());