Crazy Eddie's GUI System
0.8.2
|
Interface for Regex matching support classes. More...
Public Types | |
enum | MatchState { MS_VALID, MS_INVALID, MS_PARTIAL } |
Enumeration of possible states when cosidering a regex match. More... | |
Public Member Functions | |
virtual | ~RegexMatcher () |
Destructor. | |
virtual void | setRegexString (const String ®ex)=0 |
Set the regex string that will be matched against. | |
virtual const String & | getRegexString () const =0 |
Return reference to current regex string set. | |
virtual MatchState | getMatchStateOfString (const String &str) const =0 |
Return the MatchState result for the given String. | |
Interface for Regex matching support classes.
Enumeration of possible states when cosidering a regex match.
Enumerator | |
---|---|
MS_VALID |
String matches the regular expression completely. |
MS_INVALID |
String does not match the regular expression at all. |
MS_PARTIAL |
String partially matches. Changes to the string could result in either an MS_VALID or MS_INVALID MatchState. |