Inherited by YGP::FileRegularExpr, and YGP::RegularExpression.
Public Member Functions | |
| bool | matches (const char *pCompare) |
| virtual int | checkIntegrity () const |
Protected Member Functions | |
| IRegularExpression (const char *pExpression) | |
| virtual | ~IRegularExpression () |
| IRegularExpression & | operator= (const char *pExpr) |
| const char * | getExpression () const |
| virtual bool | compare (const char *pAktRegExp, const char *pCompare)=0 |
Provides interface for other regular-expression-like classes.
pExpression-parameter is stored as is (and not copied); so take care it is valid during the life-time of the object. | YGP::IRegularExpression::IRegularExpression | ( | const char * | pExpression | ) | [inline, protected] |
Constructor; sets the regular expression.
| virtual YGP::IRegularExpression::~IRegularExpression | ( | ) | [inline, protected, virtual] |
Destructor.
| virtual int YGP::IRegularExpression::checkIntegrity | ( | ) | const [inline, virtual] |
Checks the integrity of the object.
Reimplemented in YGP::RegularExpression, and YGP::FileRegularExpr.
| virtual bool YGP::IRegularExpression::compare | ( | const char * | pAktRegExp, | |
| const char * | pCompare | |||
| ) | [protected, pure virtual] |
Method to compare (a part of) the regular expression with some text.
Implemented in YGP::RegularExpression, and YGP::FileRegularExpr.
| const char* YGP::IRegularExpression::getExpression | ( | ) | const [inline, protected] |
Returns the regular expression.
| bool YGP::IRegularExpression::matches | ( | const char * | pCompare | ) | [inline] |
Checks, if the regular expression matches the passed text.
| pCompare | Pointer to text to match |
| IRegularExpression& YGP::IRegularExpression::operator= | ( | const char * | pExpr | ) | [inline, protected] |
Assignment operator; sets the regular expression.
Reimplemented in YGP::RegularExpression, and YGP::FileRegularExpr.