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

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

Example:

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