Windy
Windows string library for ANSI strings and wide strings.
Features
- Owned ANSI strings:
AString. - Owned wide strings:
WString. - Borrowed ANSI strings:
AStr. - Borrowed wide strings:
WStr. - Dynamically-code-paged ANSI strings:
DAStringandDAStr. - Windows
ANSI_STRINGandUNICODE_STRINGwrappers. - Conversions between ANSI strings, wide strings, and UTF-8
Stringvalues. no_stdsupport for borrowed string types.
Installation
Add this crate to Cargo.toml:
[]
= "0.4.0"
no_std support
Disable default features to build without std:
--no-default-features
Owned string types are available only with the std feature.
Macros
windy-macros crate provides compile-time conversion from
UTF-8 string literals to ANSI strings or wide strings.
[]
= "0.4.0"
= "0.3.0"
Example
use c_void;
use WStr;
use wstr;
unsafe extern "system"
const MB_OK: u32 = 0;
License
This software is released under the MIT or Apache-2.0 License, see LICENSE-MIT or LICENSE-APACHE.