Crazy Eddie's GUI System  ${CEGUI_VERSION}
CEGUI::RegexMatcher Class Referenceabstract

Interface for Regex matching support classes. More...

Inherits CEGUI::AllocatedObject< RegexMatcher >, and CEGUI::AllocatedObject< RegexMatcher >.

Inherited by CEGUI::PCRERegexMatcher, CEGUI::PCRERegexMatcher, and RegexMatcher_wrapper.

+ Collaboration diagram for CEGUI::RegexMatcher:

Public Types

enum  MatchState {
  MS_VALID, MS_INVALID, MS_PARTIAL, MS_VALID,
  MS_INVALID, MS_PARTIAL
}
 Enumeration of possible states when cosidering a regex match. More...
 
enum  MatchState {
  MS_VALID, MS_INVALID, MS_PARTIAL, 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.
 
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

◆ MatchState [1/2]

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.

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.

◆ MatchState [2/2]

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.

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.