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.
- String
Fragment - 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§
- Unescape
Default - An iterator producing unescaped characters of a string.