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.