|
Yate
|
A regexp matching class. More...
#include <yateclass.h>
Public Member Functions | |
| Regexp () | |
| Regexp (const char *value, bool extended=false, bool insensitive=false) | |
| Regexp (const Regexp &value) | |
| virtual | ~Regexp () |
| Regexp & | operator= (const char *value) |
| bool | compile () const |
| bool | matches (const char *value) const |
| virtual bool | matches (const String &value) const |
| void | setFlags (bool extended, bool insensitive) |
| bool | isExtended () const |
| bool | isCaseInsensitive () const |
Protected Member Functions | |
| virtual void | changed () |
Friends | |
| class | String |
A regexp matching class.
A regular expression matching class.
| Regexp | ( | ) |
Creates a new, empty regexp.
| Regexp | ( | const char * | value, |
| bool | extended = false, |
||
| bool | insensitive = false |
||
| ) | [explicit] |
Creates a new initialized regexp.
| value | Initial value of the regexp. |
| extended | True to use POSIX Extended Regular Expression syntax |
| insensitive | True to not differentiate case |
| virtual ~Regexp | ( | ) | [virtual] |
Destroys the regexp, disposes the memory.
| virtual void changed | ( | ) | [protected, virtual] |
Called whenever the value changed (except in constructors) to recompile.
Reimplemented from String.
| bool compile | ( | ) | const |
Makes sure the regular expression is compiled
| bool isCaseInsensitive | ( | ) | const |
Return the Case Insensitive flag
| bool isExtended | ( | ) | const |
Return the POSIX Extended syntax flag
| bool matches | ( | const char * | value | ) | const |
Checks if the pattern matches a given value
| value | String to check for match |
Referenced by Regexp::matches().
Checks if the pattern matches a string
| value | String to check for match |
Reimplemented from String.
References Regexp::matches(), and String::safe().
| Regexp& operator= | ( | const char * | value | ) | [inline] |
| void setFlags | ( | bool | extended, |
| bool | insensitive | ||
| ) |
Change the expression matching flags
| extended | True to use POSIX Extended Regular Expression syntax |
| insensitive | True to not differentiate case |
1.7.6.1