Expand description
Utilities for validating string and char literals and turning them into values they represent.
Enums§
- Errors that can occur during string unescaping.
- What kind of literal do we parse.
Functions§
- Takes a contents of a byte literal (without quotes), and returns an unescaped byte or an error.
- Takes a contents of a byte string literal (without quotes) and produces a sequence of bytes or errors. Values are returned through invoking of the provided callback.
- Takes a contents of a char literal (without quotes), and returns an unescaped char or an error
- Takes a contents of a raw byte string literal (without quotes) and produces a sequence of bytes or errors. Values are returned through invoking of the provided callback. NOTE: Raw strings do not perform any explicit character escaping, here we only translate CRLF to LF and produce errors on bare CR.
- Takes a contents of a raw string literal (without quotes) and produces a sequence of characters or errors. Values are returned through invoking of the provided callback. NOTE: Raw strings do not perform any explicit character escaping, here we only translate CRLF to LF and produce errors on bare CR.
- Takes a contents of a string literal (without quotes) and produces a sequence of escaped characters or errors. Values are returned through invoking of the provided callback.