[][src]Macro sciter::s2w

macro_rules! s2w {
    ($s:expr) => { ... };
}

Rust string to UTF-16 conversion. See also utf::w2s.

Example:

This example is not tested
let cwstr = s2w!("hello"); // Vec<u16>
libc::printf("%ws", cwstr.as_ptr());