This project has been deprecated as it is now a part of widestring.

u16cstr

Build crates.io Documentation dependency status MIT

A macro for creating c-style u16 wide strings at compile time.

Example

```rust use u16cstr::{u16cstr, u16str}; use widestring::{U16CString, U16String, U16CStr, U16Str};

// c-style terminated wide string const widecstring: &U16CStr = u16cstr!("Test"); asserteq!(widecstring, U16CString::fromstr("Test").unwrap().as_ucstr());

// non-terminated wide string const widestring: &U16Str = u16str!("Test"); asserteq!(widestring, U16String::fromstr("Test").as_ustr()); ```

License

Licensed under MIT license (LICENSE or http://opensource.org/licenses/MIT)