Crazy Eddie's GUI System 0.8.7
CEGUI::RegexMatcher Class Referenceabstract

Interface for Regex matching support classes. More...

#include <RegexMatcher.h>

+ 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. More...
 
virtual const StringgetRegexString () const =0
 Return reference to current regex string set. More...
 
virtual MatchState getMatchStateOfString (const String &str) const =0
 Return the MatchState result for the given String. More...
 

Detailed Description

Interface for Regex matching support classes.

Member Enumeration Documentation

◆ MatchState

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.

Member Function Documentation

◆ getMatchStateOfString()

virtual MatchState CEGUI::RegexMatcher::getMatchStateOfString ( const String str) const
pure virtual

Return the MatchState result for the given String.

Implemented in CEGUI::PCRERegexMatcher.

◆ getRegexString()

virtual const String & CEGUI::RegexMatcher::getRegexString ( ) const
pure virtual

Return reference to current regex string set.

Implemented in CEGUI::PCRERegexMatcher.

◆ setRegexString()

virtual void CEGUI::RegexMatcher::setRegexString ( const String regex)
pure virtual

Set the regex string that will be matched against.

Implemented in CEGUI::PCRERegexMatcher.