A regular expression.
More...
#include <RegExp.h++>
A regular expression.
- Author
- Mark Lindner
◆ RegExp() [1/2]
◆ RegExp() [2/2]
◆ ~RegExp()
◆ escapeMeta()
Escape all metacharacters in a String.
- Parameters
-
- Returns
- A copy of the string with all metacharacters escaped.
◆ getPattern()
Get the regular expression pattern.
◆ isNull()
Determine if this regular expression has a null pattern.
◆ match() [1/2]
bool match |
( |
const String & |
text | ) |
const |
Perform a pattern match against some text.
- Parameters
-
- Returns
- true if the text matches the pattern, false otherwise.
◆ match() [2/2]
Perform a pattern match against some text, returning submatches.
- Parameters
-
text | The text. |
matches | The objects in which the submatches will be recorded. |
numMatches | The number of submatches. |
- Returns
- true if the text matches the pattern, false otherwise.
◆ operator!()
Determine if this regular expression has a null pattern.
◆ operator=()
◆ setPattern() [1/2]
void setPattern |
( |
const char * |
pattern, |
|
|
bool |
caseInsensitive = false |
|
) |
| |
|
inline |
Set the regular expression pattern.
- Parameters
-
pattern | The pattern. |
caseInsensitive | A flag indicating whether pattern matches using this pattern should be case-insensitive. |
- Exceptions
-
◆ setPattern() [2/2]
void setPattern |
( |
const String & |
pattern, |
|
|
bool |
caseInsensitive = false |
|
) |
| |
Set the regular expression pattern.
- Parameters
-
pattern | The pattern. |
caseInsensitive | A flag indicating whether pattern matches using this pattern should be case-insensitive. |
- Exceptions
-
◆ toString()
The documentation for this class was generated from the following files: