Module predicates::str
source · Expand description
String Predicates
This module contains predicates specific to string handling.
Structs
- Predicate that checks for patterns.
- Predicate that diffs two strings.
- Predicate checks end of str
- Predicate that checks for empty strings.
- Predicate that checks for repeated patterns.
- Predicate adapter that normalizes the newlines contained in the variable being tested.
- Predicate that uses regex matching
- Predicate checks start of str
- Predicate adaper that trims the variable being tested.
- Predicate adaper that converts a
strpredicate to byte predicate.
Traits
Predicateextension adapting astrPredicate.
Functions
- Creates a new
Predicatethat ensures a str containspattern - Creates a new
Predicatethat diffs two strings. - Creates a new
Predicatethat ensures a str ends withpattern - Creates a new
Predicatethat ensures a str is empty - Creates a new
Predicatethat uses a regular expression to match the string. - Creates a new
Predicatethat ensures a str starts withpattern
Type Definitions
- An error that occurred during parsing or compiling a regular expression.