#include <pcre_rml.h>
List of all members.
Classes
Public Types
Public Member Functions
- RML_RE (void)
- RML_RE (const string &pat)
- RML_RE (const string &pat, const Options &opts)
- RML_RE (const string &pat, const vector< BYTE > &RegExpTables)
- RML_RE (const RML_RE &re)
- void operator= (const RML_RE &re)
- void clear ()
- ~RML_RE ()
- const string & pattern () const
- void pattern (const string &pattern)
- const string & error () const
- bool FullMatch (const StringPiece &text, const Arg &ptr1=no_arg, const Arg &ptr2=no_arg, const Arg &ptr3=no_arg, const Arg &ptr4=no_arg, const Arg &ptr5=no_arg, const Arg &ptr6=no_arg, const Arg &ptr7=no_arg, const Arg &ptr8=no_arg, const Arg &ptr9=no_arg, const Arg &ptr10=no_arg, const Arg &ptr11=no_arg, const Arg &ptr12=no_arg, const Arg &ptr13=no_arg, const Arg &ptr14=no_arg, const Arg &ptr15=no_arg, const Arg &ptr16=no_arg) const
- bool PartialMatch (const StringPiece &text, const Arg &ptr1=no_arg, const Arg &ptr2=no_arg, const Arg &ptr3=no_arg, const Arg &ptr4=no_arg, const Arg &ptr5=no_arg, const Arg &ptr6=no_arg, const Arg &ptr7=no_arg, const Arg &ptr8=no_arg, const Arg &ptr9=no_arg, const Arg &ptr10=no_arg, const Arg &ptr11=no_arg, const Arg &ptr12=no_arg, const Arg &ptr13=no_arg, const Arg &ptr14=no_arg, const Arg &ptr15=no_arg, const Arg &ptr16=no_arg) const
- bool Consume (StringPiece *input, const Arg &ptr1=no_arg, const Arg &ptr2=no_arg, const Arg &ptr3=no_arg, const Arg &ptr4=no_arg, const Arg &ptr5=no_arg, const Arg &ptr6=no_arg, const Arg &ptr7=no_arg, const Arg &ptr8=no_arg, const Arg &ptr9=no_arg, const Arg &ptr10=no_arg, const Arg &ptr11=no_arg, const Arg &ptr12=no_arg, const Arg &ptr13=no_arg, const Arg &ptr14=no_arg, const Arg &ptr15=no_arg, const Arg &ptr16=no_arg) const
- bool FindAndConsume (StringPiece *input, const Arg &ptr1=no_arg, const Arg &ptr2=no_arg, const Arg &ptr3=no_arg, const Arg &ptr4=no_arg, const Arg &ptr5=no_arg, const Arg &ptr6=no_arg, const Arg &ptr7=no_arg, const Arg &ptr8=no_arg, const Arg &ptr9=no_arg, const Arg &ptr10=no_arg, const Arg &ptr11=no_arg, const Arg &ptr12=no_arg, const Arg &ptr13=no_arg, const Arg &ptr14=no_arg, const Arg &ptr15=no_arg, const Arg &ptr16=no_arg) const
- bool Replace (const StringPiece &rewrite, string *str) const
- int GlobalReplace (const StringPiece &rewrite, string *str) const
- bool Extract (const StringPiece &rewrite, const StringPiece &text, string *out) const
- bool DoMatch (const StringPiece &text, Anchor anchor, int *consumed, const Arg *const *args, int n) const
- int NumberOfCapturingGroups ()
Static Public Member Functions
Protected Member Functions
- void Init (const string &pattern)
- int TryMatch (const StringPiece &text, int startpos, Anchor anchor, int *vec, int vecsize) const
- bool Rewrite (string *out, const StringPiece &rewrite, const StringPiece &text, int *vec, int veclen) const
- bool DoMatchImpl (const StringPiece &text, Anchor anchor, int *consumed, const Arg *const args[], int n, int *vec, int vecsize) const
- pcre * Compile (Anchor anchor)
Protected Attributes
Member Typedef Documentation
Member Enumeration Documentation
- Enumerator:
UNANCHORED |
|
ANCHOR_START |
|
ANCHOR_BOTH |
|
Constructor & Destructor Documentation
RML_RE::RML_RE |
( |
void |
|
) |
[inline] |
RML_RE::RML_RE |
( |
const string & |
pat |
) |
[inline] |
RML_RE::RML_RE |
( |
const string & |
pat, |
|
|
const Options & |
opts | |
|
) |
| | [inline] |
RML_RE::RML_RE |
( |
const string & |
pat, |
|
|
const vector< BYTE > & |
RegExpTables | |
|
) |
| | [inline] |
RML_RE::RML_RE |
( |
const RML_RE & |
re |
) |
[inline] |
RML_RE::~RML_RE |
( |
|
) |
[inline] |
Member Function Documentation
void RML_RE::operator= |
( |
const RML_RE & |
re |
) |
[inline] |
const string& RML_RE::pattern |
( |
|
) |
const [inline] |
void RML_RE::pattern |
( |
const string & |
pattern |
) |
[inline] |
const string& RML_RE::error |
( |
|
) |
const [inline] |
bool RML_RE::FullMatch |
( |
const StringPiece & |
text, |
|
|
const Arg & |
ptr1 = no_arg , |
|
|
const Arg & |
ptr2 = no_arg , |
|
|
const Arg & |
ptr3 = no_arg , |
|
|
const Arg & |
ptr4 = no_arg , |
|
|
const Arg & |
ptr5 = no_arg , |
|
|
const Arg & |
ptr6 = no_arg , |
|
|
const Arg & |
ptr7 = no_arg , |
|
|
const Arg & |
ptr8 = no_arg , |
|
|
const Arg & |
ptr9 = no_arg , |
|
|
const Arg & |
ptr10 = no_arg , |
|
|
const Arg & |
ptr11 = no_arg , |
|
|
const Arg & |
ptr12 = no_arg , |
|
|
const Arg & |
ptr13 = no_arg , |
|
|
const Arg & |
ptr14 = no_arg , |
|
|
const Arg & |
ptr15 = no_arg , |
|
|
const Arg & |
ptr16 = no_arg | |
|
) |
| | const |
bool RML_RE::PartialMatch |
( |
const StringPiece & |
text, |
|
|
const Arg & |
ptr1 = no_arg , |
|
|
const Arg & |
ptr2 = no_arg , |
|
|
const Arg & |
ptr3 = no_arg , |
|
|
const Arg & |
ptr4 = no_arg , |
|
|
const Arg & |
ptr5 = no_arg , |
|
|
const Arg & |
ptr6 = no_arg , |
|
|
const Arg & |
ptr7 = no_arg , |
|
|
const Arg & |
ptr8 = no_arg , |
|
|
const Arg & |
ptr9 = no_arg , |
|
|
const Arg & |
ptr10 = no_arg , |
|
|
const Arg & |
ptr11 = no_arg , |
|
|
const Arg & |
ptr12 = no_arg , |
|
|
const Arg & |
ptr13 = no_arg , |
|
|
const Arg & |
ptr14 = no_arg , |
|
|
const Arg & |
ptr15 = no_arg , |
|
|
const Arg & |
ptr16 = no_arg | |
|
) |
| | const |
bool RML_RE::Consume |
( |
StringPiece * |
input, |
|
|
const Arg & |
ptr1 = no_arg , |
|
|
const Arg & |
ptr2 = no_arg , |
|
|
const Arg & |
ptr3 = no_arg , |
|
|
const Arg & |
ptr4 = no_arg , |
|
|
const Arg & |
ptr5 = no_arg , |
|
|
const Arg & |
ptr6 = no_arg , |
|
|
const Arg & |
ptr7 = no_arg , |
|
|
const Arg & |
ptr8 = no_arg , |
|
|
const Arg & |
ptr9 = no_arg , |
|
|
const Arg & |
ptr10 = no_arg , |
|
|
const Arg & |
ptr11 = no_arg , |
|
|
const Arg & |
ptr12 = no_arg , |
|
|
const Arg & |
ptr13 = no_arg , |
|
|
const Arg & |
ptr14 = no_arg , |
|
|
const Arg & |
ptr15 = no_arg , |
|
|
const Arg & |
ptr16 = no_arg | |
|
) |
| | const |
bool RML_RE::FindAndConsume |
( |
StringPiece * |
input, |
|
|
const Arg & |
ptr1 = no_arg , |
|
|
const Arg & |
ptr2 = no_arg , |
|
|
const Arg & |
ptr3 = no_arg , |
|
|
const Arg & |
ptr4 = no_arg , |
|
|
const Arg & |
ptr5 = no_arg , |
|
|
const Arg & |
ptr6 = no_arg , |
|
|
const Arg & |
ptr7 = no_arg , |
|
|
const Arg & |
ptr8 = no_arg , |
|
|
const Arg & |
ptr9 = no_arg , |
|
|
const Arg & |
ptr10 = no_arg , |
|
|
const Arg & |
ptr11 = no_arg , |
|
|
const Arg & |
ptr12 = no_arg , |
|
|
const Arg & |
ptr13 = no_arg , |
|
|
const Arg & |
ptr14 = no_arg , |
|
|
const Arg & |
ptr15 = no_arg , |
|
|
const Arg & |
ptr16 = no_arg | |
|
) |
| | const |
bool RML_RE::Replace |
( |
const StringPiece & |
rewrite, |
|
|
string * |
str | |
|
) |
| | const |
int RML_RE::GlobalReplace |
( |
const StringPiece & |
rewrite, |
|
|
string * |
str | |
|
) |
| | const |
bool RML_RE::DoMatch |
( |
const StringPiece & |
text, |
|
|
Anchor |
anchor, |
|
|
int * |
consumed, |
|
|
const Arg *const * |
args, |
|
|
int |
n | |
|
) |
| | const |
int RML_RE::NumberOfCapturingGroups |
( |
|
) |
|
bool RML_RE::isComplexPattern |
( |
const std::string & |
pat |
) |
[static] |
void RML_RE::Init |
( |
const string & |
pattern |
) |
[protected] |
int RML_RE::TryMatch |
( |
const StringPiece & |
text, |
|
|
int |
startpos, |
|
|
Anchor |
anchor, |
|
|
int * |
vec, |
|
|
int |
vecsize | |
|
) |
| | const [protected] |
bool RML_RE::Rewrite |
( |
string * |
out, |
|
|
const StringPiece & |
rewrite, |
|
|
const StringPiece & |
text, |
|
|
int * |
vec, |
|
|
int |
veclen | |
|
) |
| | const [protected] |
bool RML_RE::DoMatchImpl |
( |
const StringPiece & |
text, |
|
|
Anchor |
anchor, |
|
|
int * |
consumed, |
|
|
const Arg *const |
args[], |
|
|
int |
n, |
|
|
int * |
vec, |
|
|
int |
vecsize | |
|
) |
| | const [protected] |
pcre * RML_RE::Compile |
( |
Anchor |
anchor |
) |
[protected] |
Member Data Documentation
The documentation for this class was generated from the following files: