#include <CeylanRegularExpression.h>
Public Member Functions | |
RegExp (const std::string &toAnalyze) | |
Constructs a regular expression with the string which will be analyzed. | |
virtual | ~RegExp () throw () |
Basic virtual destructor. | |
virtual bool | matches (const std::string &pattern) const |
Tells whether the string matches the expression pattern pattern. | |
virtual bool | isXMLName () const |
Tells whether the string is a valid XML name. | |
Private Attributes | |
std::string | _toAnalyze |
The string that will be analyzed. |
Definition at line 64 of file CeylanRegularExpression.h.
RegExp::RegExp | ( | const std::string & | toAnalyze | ) | [explicit] |
Constructs a regular expression with the string which will be analyzed.
FeatureNotAvailableException | if the regular expression support feature is not available. |
Definition at line 58 of file CeylanRegularExpression.cc.
RegExp::~RegExp | ( | ) | throw () [virtual] |
Basic virtual destructor.
Definition at line 77 of file CeylanRegularExpression.cc.
bool RegExp::isXMLName | ( | ) | const [virtual] |
bool RegExp::matches | ( | const std::string & | pattern | ) | const [virtual] |
Tells whether the string matches the expression pattern pattern.
FeatureNotAvailableException | if the regular expression support feature is not available. |
Definition at line 93 of file CeylanRegularExpression.cc.
References _toAnalyze.
Referenced by Ceylan::System::StandardFileSystemManager::isAValidDirectoryPath(), Ceylan::Network::isAValidHostName(), Ceylan::Network::IPAddressvFour::IsValidIPv4(), and isXMLName().
std::string Ceylan::RegExp::_toAnalyze [private] |
The string that will be analyzed.
Definition at line 116 of file CeylanRegularExpression.h.
Referenced by matches().