Defines mask based string matcher. More...
Public Member Functions | |
StringMatcher (string template) | |
Constructs a new instance of StringMatcher. More... | |
bool | IsMatch (string text) |
Matches text against this matcher. More... | |
MatcherComparisonResult | Compare (StringMatcher other) |
Determines whether this StringMatcher is a sub-set, a super-set, is equal to or is distinct from the other StringMatcher. More... | |
Static Public Member Functions | |
static MatcherComparisonResult | Compare (StringMatcher lhs, StringMatcher rhs) |
Determines whether first StringMatcher is a sub-set, a super-set, is equal to or is distinct from the second StringMatcher. More... | |
Properties | |
string | Template \*".*?"\?"." [get] |
Gets the template string. More... | |
Defines mask based string matcher.
|
inline |
Constructs a new instance of StringMatcher.
The template may contain:
*
character to match zero or more characters?
character to exactly one character template | A template for matching |
|
inlinestatic |
Determines whether first StringMatcher is a sub-set, a super-set, is equal to or is distinct from the second StringMatcher.
lhs | A first StringMatcher to compare. |
rhs | A second StringMatcher to compare. |
|
inline |
Determines whether this StringMatcher is a sub-set, a super-set, is equal to or is distinct from the other StringMatcher.
other | A StringMatcher to compare. |
|
inline |
Matches text against this matcher.
text | A text to match. |
|
get |
Gets the template string.