#include <regexp.h>
◆ PCRERegexp()
PCRERegexp::PCRERegexp |
( |
int |
iOvectorSize = 30 | ) |
|
◆ ~PCRERegexp()
PCRERegexp::~PCRERegexp |
( |
| ) |
|
◆ get_error()
PCRERegexp::get_error |
( |
| ) |
|
Return the error ccode.
- Returns
- Error code (string)
◆ preg_match_all()
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
◆ error
◆ iOvectorSize
int PCRERegexp::iOvectorSize |
|
private |
Size of the ovector array.
◆ isClassUsed
bool PCRERegexp::isClassUsed |
|
private |
True if the class was used.
◆ ovector
Information about the result.
◆ regError
const char* PCRERegexp::regError |
|
private |
◆ regErrorOffset
int PCRERegexp::regErrorOffset |
|
private |
◆ regexp
◆ regPattern
const char* PCRERegexp::regPattern |
|
private |
◆ regSubject
const char* PCRERegexp::regSubject |
|
private |
◆ regSubjectLength
int PCRERegexp::regSubjectLength |
|
private |
The documentation for this class was generated from the following files: