Crate unescape_zero_copy

Source
Expand description

Small library to unescape strings, without needing to allocate for strings without escape sequences. Tries to support a variety of languages, including through custom parsers if needed, though it mainly supports C-style escape escape sequences by default.

Structs§

Unescape
An iterator producing unescaped characters of a string.

Enums§

Error
Errors which may be returned by the unescaper.
StringFragment
A fragment of an unescaped string.

Functions§

default_escape_sequence
The default unescaper, focusing on C-style escape sequences.
unescape
Unescape the string into a Cow string.
unescape_default
Unescapes the string as unescape using the default escape sequence parser.

Type Aliases§

UnescapeDefault
An iterator producing unescaped characters of a string.