Crazy Eddie's GUI System 0.8.7
CEGUI::StdRegexMatcher Class Reference

Implementation of RegexMatcher using std::regex. More...

#include <StdRegexMatcher.h>

+ Inheritance diagram for CEGUI::StdRegexMatcher:
+ Collaboration diagram for CEGUI::StdRegexMatcher:

Public Member Functions

 StdRegexMatcher ()
 Constructor.
 
 ~StdRegexMatcher ()
 Destructor.
 
void setRegexString (const String &regex)
 Set the regex string that will be matched against. More...
 
const StringgetRegexString () const
 Return reference to current regex string set. More...
 
bool matchRegex (const String &str) const
 
MatchState getMatchStateOfString (const String &str) const
 Return the MatchState result for the given String. More...
 
- Public Member Functions inherited from CEGUI::RegexMatcher
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...
 

Additional Inherited Members

- Public Types inherited from CEGUI::RegexMatcher
enum  MatchState { MS_VALID , MS_INVALID , MS_PARTIAL }
 Enumeration of possible states when cosidering a regex match. More...
 

Detailed Description

Implementation of RegexMatcher using std::regex.

Member Function Documentation

◆ getMatchStateOfString()

MatchState CEGUI::StdRegexMatcher::getMatchStateOfString ( const String str) const
virtual

Return the MatchState result for the given String.

Implements CEGUI::RegexMatcher.

◆ getRegexString()

const String & CEGUI::StdRegexMatcher::getRegexString ( ) const
virtual

Return reference to current regex string set.

Implements CEGUI::RegexMatcher.

◆ setRegexString()

void CEGUI::StdRegexMatcher::setRegexString ( const String regex)
virtual

Set the regex string that will be matched against.

Implements CEGUI::RegexMatcher.