#include <regexp.h>
PCRERegexp::PCRERegexp |
( |
int |
iOvectorSize = 30 | ) |
|
PCRERegexp::~PCRERegexp |
( |
| ) |
|
PCRERegexp::get_strError |
( |
| ) |
|
Return the error ccode.
- Returns
- Error code (string)
PCRERegexp::preg_match_all |
( |
const string & |
pattern, |
|
|
const string & |
subject, |
|
|
PCREResult & |
results, |
|
|
const int & |
optionsCompile = 0 |
|
) |
| |
As the usual PHP preg_match_all: executes the regexp and fetch all the occurrences.
- Parameters
-
pattern( | const string & ) The pattern to search for |
subject( | const string & ) The input string |
results( | PCREResult & ) Array of all matches in multi-dimensional array |
optionsCompile( | const int& ) Options for the regexp. For example: 0, PCRE_CASELESS |
- Returns
- Number of results (unsigned int) or -1 if an error occurred
bool PCRERegexp::bClassUsed |
|
private |
True if the class was used.
int PCRERegexp::iOvectorSize |
|
private |
Size of the ovector array.
Information about the result.
const char* PCRERegexp::regError |
|
private |
int PCRERegexp::regErrorOffset |
|
private |
const char* PCRERegexp::regPattern |
|
private |
const char* PCRERegexp::regSubject |
|
private |
int PCRERegexp::regSubjectLength |
|
private |
string PCRERegexp::strError |
|
private |
The documentation for this class was generated from the following files: