Macro sciter::s2w

source ·
macro_rules! s2w {
    ($s:expr) => { ... };
}
Expand description

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());