Windy
A Windows strings library that supports AString (ANSI string) and WString (Unicode string).
Features
- ANSI string(AString)
- Wide string(WString)
- AnsiString(ANSI_STRING)
- UnicodeString(UNICODE_STRING)
- Interconversion between AString, WString and String.
- no_std support
- Macros support
Installation
Add the following lines to your Cargo.toml:
[dependencies]
windy = "0.2.0"
Example
An example of parsing the outputs of cmd.exe.
use AString;
use Command;
no_std support
If you don't want to use std, use --no-default-features
.
AString and WString are not available when no_std.
Macros support
windy-macros to convert a UTF-8 string to WString or AString at compile time.
[dependencies]
windy = "0.2.0"
windy-macros = "0.1.1"
Example
use WStr;
use wstr;
extern "system"
License
This software is released under the MIT or Apache-2.0 License, see LICENSE-MIT or LICENSE-APACHE.