Skip to content

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

License

Notifications You must be signed in to change notification settings

OpenByteDev/u16cstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

u16cstr

Build crates.io Documentation dependency status MIT

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

Example

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

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

// non-terminated wide string
const wide_string: &U16Str = u16str!("Test");
assert_eq!(wide_string, U16String::from_str("Test").as_ustr());

License

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages