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

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

Example:

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