Module sindra::rules::string [] [src]

Rules and methods for parsing strings with escapes.

Structs

ESCAPE_REGEX

Regular expression for string escapes.

STRING_REGEX

Regular expression for a string literal.

STRING_REGEX_ANC

Regular expression for a front-anchored string literal.

UNICODE_REGEX

Regular expression for unicode character specification.

Constants

PTN_STRING

Regex patten for a string literal.

Functions

convert_string

Processes regular expression captures from STRING_REGEX or STRING_REGEX_ANC into String, handling all escapes as necessary.

match_str_ext

Interface method for rustpeg files to use the string regex.