Module like_pattern

Source

Re-exportsยง

pub use matcher::Matcher;

Modulesยง

matcher ๐Ÿ”’

Structsยง

ProtoMatcher
ProtoSubpattern
Subpattern ๐Ÿ”’

Enumsยง

EscapeBehavior
Specifies escape behavior for the LIKE pattern.

Constantsยง

DEFAULT_ESCAPE ๐Ÿ”’
The escape character to use by default in LIKE patterns.
DOUBLED_ESCAPE ๐Ÿ”’
MAX_SUBPATTERNS ๐Ÿ”’
The number of subpatterns after which using regexes would be more efficient.

Functionsยง

any_matcher
build_regex ๐Ÿ”’
Builds a regular expression that matches some parsed Subpatterns.
build_subpatterns ๐Ÿ”’
Breaks a LIKE pattern into a chain of sub-patterns.
compile
Builds a Matcher that matches a SQL LIKE pattern.
is_match_subpatterns ๐Ÿ”’
normalize_pattern
Converts a pattern string that uses a custom escape character to one that uses the default.