Expand description
Utilities for validating string and char literals and turning them into values they represent.
Enums§
- CStr
Unit - A unit within CStr. Must not be a nul character.
- Escape
Error - Errors and warnings that can occur during string unescaping.
- Mode
- What kind of literal do we parse.
Functions§
- byte_
from_ char - unescape_
byte - Takes a contents of a byte literal (without quotes), and returns an unescaped byte or an error.
- unescape_
c_ string - unescape_
char - Takes a contents of a char literal (without quotes), and returns an unescaped char or an error.
- unescape_
literal - Takes a contents of a literal (without quotes) and produces a sequence of escaped characters or errors. Values are returned through invoking of the provided callback.