CoxIter  1.2
CoxIter - Computing invariants of hyperbolic Coxeter groups
Public Member Functions | Private Attributes | List of all members
PCRERegexp Class Reference

#include <regexp.h>

Public Member Functions

 PCRERegexp (int iOvectorSize=30)
 
 ~PCRERegexp ()
 
int 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. More...
 
string get_strError ()
 Return the error ccode. More...
 

Private Attributes

string strError
 Eventually, error code. More...
 
bool bClassUsed
 True if the class was used. More...
 
pcre * regexp
 
const char * regPattern
 
const char * regSubject
 
const char * regError
 
int regErrorOffset
 
int regSubjectLength
 
int * ovector
 Information about the result. More...
 
int iOvectorSize
 Size of the ovector array. More...
 

Detailed Description

Constructor & Destructor Documentation

PCRERegexp::PCRERegexp ( int  iOvectorSize = 30)
PCRERegexp::~PCRERegexp ( )

Member Function Documentation

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

Member Data Documentation

bool PCRERegexp::bClassUsed
private

True if the class was used.

int PCRERegexp::iOvectorSize
private

Size of the ovector array.

int* PCRERegexp::ovector
private

Information about the result.

const char* PCRERegexp::regError
private
int PCRERegexp::regErrorOffset
private
pcre* PCRERegexp::regexp
private
const char* PCRERegexp::regPattern
private
const char* PCRERegexp::regSubject
private
int PCRERegexp::regSubjectLength
private
string PCRERegexp::strError
private

Eventually, error code.


The documentation for this class was generated from the following files: