Crazy Eddie's GUI System  0.8.4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
CEGUI::RegexMatcher Class Referenceabstract

Interface for Regex matching support classes. More...

+ Inheritance diagram for CEGUI::RegexMatcher:
+ Collaboration diagram for CEGUI::RegexMatcher:

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 &regex)=0
 Set the regex string that will be matched against.
 
virtual const StringgetRegexString () 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.
 

Detailed Description

Interface for Regex matching support classes.

Member Enumeration Documentation

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.