MCPcopy Index your code
hub / github.com/VoidStarKat/widestring-rs

github.com/VoidStarKat/widestring-rs @v1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.1 ↗ · + Follow
258 symbols 477 edges 19 files 32 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

widestring

crates.io Documentation License Build status

A wide string Rust library for converting to and from wide strings, such as those often used in Windows API or other FFI libaries. Both u16 and u32 string types are provided, including support for UTF-16 and UTF-32, malformed encoding, C-style strings, etc.

Macros for converting string literals to UTF-16 and UTF-32 strings at compile time are also included.

Requires Rust 1.58 or greater. If you need support for older versions of Rust, use 0.x versions of this crate.

Documentation

Optional Features

  • alloc - Enabled by default. Enable use of the alloc crate when not using the std library.

This enables the owned string types and aliases.

  • std - Enabled by default. Enable features that depend on the Rust std library, including everything in the alloc feature.

  • debugger_visualizer Add debugger visualizer data for crate types. Requires Rust 1.71 or newer

License

All files in this library are dual-licensed and distributed under the terms of either of:

at your option.

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Core symbols most depended-on inside this repo

len
called by 39
src/iter.rs
chars
called by 29
src/ustr.rs
as_ref
called by 21
src/utfstr.rs
chars
called by 20
src/utfstr.rs
push
called by 12
src/utfstring.rs
encode_utf16
called by 12
src/utfstr.rs
is_utf16_low_surrogate
called by 9
src/lib.rs
into_vec
called by 9
src/error.rs

Shape

Method 171
Function 47
Class 38
Enum 2

Languages

Rust97%
Python3%

Modules by API surface

src/utfstr.rs43 symbols
src/utfstring.rs26 symbols
src/lib.rs26 symbols
src/ucstr.rs23 symbols
src/error.rs17 symbols
src/utfstr/iter.rs16 symbols
src/ustring.rs15 symbols
src/ustr/iter.rs15 symbols
src/ustr.rs15 symbols
src/ucstring.rs14 symbols
src/iter.rs12 symbols
gdb/widestring.py9 symbols

For agents

$ claude mcp add widestring-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page