macro_rules! include_utf16str {
    ($text:expr) => { ... };
}
Expand description

Includes a UTF-16 encoded file as a Utf16Str.

This uses include_bytes to accomplish this.

§Examples

use widestring::{include_utf16str, Utf16Str, Utf16String};

const STRING: &Utf16Str = include_utf16str!("example.txt");
assert_eq!(Utf16String::from_str("My string"), STRING);