Expand description
String conversion, formatting, parsing, serialization, and slicing utilities.
The module includes borrowed unquoted views, Serde adapters, chunking, case conversion, deterministic prefix selection, and UTF-8 conversion. Specialized display wrappers avoid allocation. String traits and helpers are re-exported from child modules.
Modulesยง
- between ๐
- chunk ๐
- Budget-driven text segmentation. The size budget is injected as a
fitspredicate, so the caller owns measurement; markdown mode keeps code fences self-contained across segment boundaries. - de
- Serde deserializers for normalized strings.
- split ๐
- unquote ๐
- unquoted ๐
Structsยง
- Unquoted
- A string view with surrounding quotes removed when present.
Constantsยง
- EMPTY
- Provides a shared empty string slice.
Traitsยง
- Between
- Slice a string between a pair of delimiters.
- Split
Infallible - Split a string with default behaviors on non-match.
- Unquote
- Slice a string between quotes
Functionsยง
- camel_
to_ snake_ case - Streams ASCII camel-case bytes into a writer as lowercase snake case.
- camel_
to_ snake_ string - Converts ASCII camel-case text into an owned lowercase snake-case string.
- chunk
- Lazily splits
textusing a monotonicfitspredicate. - collect_
stream - Collects text emitted by a callback into an owned string.
- common_
prefix - Returns the longest common ASCII prefix of a collection of strings.
- format_
array_ string - Formats arguments into an array string with constant byte capacity.
- format_
small_ string - Formats arguments into a small string with an inline byte capacity.
- str_
from_ bytes - Borrows a byte slice as UTF-8 text.
- string_
from_ bytes - Converts UTF-8 bytes into an owned string.
- to_
array_ string - Displays a value into an array string with constant byte capacity.
- to_
small_ string - Displays a value into a small string with an inline byte capacity.
- truncate_
deterministic - Returns a deterministic prefix selected from the string contents.
- try_
format_ array_ string - Formats arguments into an array string, propagating any formatting error.
- try_
format_ small_ string - Formats arguments into a small string, propagating any formatting error.