#include <pcre.h>
|
enum | Anchor {
UNANCHORED,
ANCHOR_START,
ANCHOR_BOTH,
UNANCHORED,
ANCHOR_START,
ANCHOR_BOTH
} |
|
enum | Anchor {
UNANCHORED,
ANCHOR_START,
ANCHOR_BOTH,
UNANCHORED,
ANCHOR_START,
ANCHOR_BOTH
} |
|
enum | Option {
None = 0x0000,
UTF8 = 0x0800,
EnabledCompileOptions = UTF8,
EnabledExecOptions = 0x0000,
None = 0x0000,
UTF8 = 0x0800,
EnabledCompileOptions = UTF8,
EnabledExecOptions = 0x0000
} |
|
enum | Option {
None = 0x0000,
UTF8 = 0x0800,
EnabledCompileOptions = UTF8,
EnabledExecOptions = 0x0000,
None = 0x0000,
UTF8 = 0x0800,
EnabledCompileOptions = UTF8,
EnabledExecOptions = 0x0000
} |
|
|
bool | CheckRewriteString (const StringPiece &rewrite, std::string *error) const |
|
bool | CheckRewriteString (const StringPiece &rewrite, std::string *error) const |
|
void | ClearHitLimit () |
|
void | ClearHitLimit () |
|
bool | DoMatch (const StringPiece &text, Anchor anchor, size_t *consumed, const Arg *const *args, int n) const |
|
bool | DoMatch (const StringPiece &text, Anchor anchor, size_t *consumed, const Arg *const *args, int n) const |
|
const std::string & | error () const |
|
const std::string & | error () const |
|
bool | HitLimit () |
|
bool | HitLimit () |
|
int | NumberOfCapturingGroups () const |
|
int | NumberOfCapturingGroups () const |
|
const std::string & | pattern () const |
|
const std::string & | pattern () const |
|
| PCRE (const char *pattern) |
|
| PCRE (const char *pattern) |
|
| PCRE (const char *pattern, const PCRE_Options &re_option) |
|
| PCRE (const char *pattern, const PCRE_Options &re_option) |
|
| PCRE (const char *pattern, Option option) |
|
| PCRE (const char *pattern, Option option) |
|
| PCRE (const std::string &pattern) |
|
| PCRE (const std::string &pattern) |
|
| PCRE (const std::string &pattern, const PCRE_Options &re_option) |
|
| PCRE (const std::string &pattern, const PCRE_Options &re_option) |
|
| PCRE (const std::string &pattern, Option option) |
|
| PCRE (const std::string &pattern, Option option) |
|
| ~PCRE () |
|
| ~PCRE () |
|
|
static bool | Extract (const StringPiece &text, const PCRE &pattern, const StringPiece &rewrite, std::string *out) |
|
static bool | Extract (const StringPiece &text, const PCRE &pattern, const StringPiece &rewrite, std::string *out) |
|
static int | GlobalReplace (std::string *str, const PCRE &pattern, const StringPiece &rewrite) |
|
static int | GlobalReplace (std::string *str, const PCRE &pattern, const StringPiece &rewrite) |
|
static std::string | QuoteMeta (const StringPiece &unquoted) |
|
static std::string | QuoteMeta (const StringPiece &unquoted) |
|
static bool | Replace (std::string *str, const PCRE &pattern, const StringPiece &rewrite) |
|
static bool | Replace (std::string *str, const PCRE &pattern, const StringPiece &rewrite) |
|
|
pcre * | Compile (Anchor anchor) |
|
pcre * | Compile (Anchor anchor) |
|
bool | DoMatchImpl (const StringPiece &text, Anchor anchor, size_t *consumed, const Arg *const args[], int n, int *vec, int vecsize) const |
|
bool | DoMatchImpl (const StringPiece &text, Anchor anchor, size_t *consumed, const Arg *const args[], int n, int *vec, int vecsize) const |
|
void | Init (const char *pattern, Option option, int match_limit, int stack_limit, bool report_errors) |
|
void | Init (const char *pattern, Option option, int match_limit, int stack_limit, bool report_errors) |
|
PCRE & | operator= (const PCRE &)=delete |
|
PCRE & | operator= (const PCRE &)=delete |
|
| PCRE (const PCRE &)=delete |
|
| PCRE (const PCRE &)=delete |
|
bool | Rewrite (std::string *out, const StringPiece &rewrite, const StringPiece &text, int *vec, int veclen) const |
|
bool | Rewrite (std::string *out, const StringPiece &rewrite, const StringPiece &text, int *vec, int veclen) const |
|
int | TryMatch (const StringPiece &text, size_t startpos, Anchor anchor, bool empty_ok, int *vec, int vecsize) const |
|
int | TryMatch (const StringPiece &text, size_t startpos, Anchor anchor, bool empty_ok, int *vec, int vecsize) const |
|
◆ Anchor [1/2]
◆ Anchor [2/2]
Enumerator |
---|
UNANCHORED | |
ANCHOR_START | |
ANCHOR_BOTH | |
UNANCHORED | |
ANCHOR_START | |
ANCHOR_BOTH | |
Definition at line 436 of file re2/util/pcre.h.
◆ Option [1/2]
Enumerator |
---|
None | |
UTF8 | |
EnabledCompileOptions | |
EnabledExecOptions | |
None | |
UTF8 | |
EnabledCompileOptions | |
EnabledExecOptions | |
Definition at line 204 of file re2/util/pcre.h.
◆ Option [2/2]
◆ PCRE() [1/14]
re2::PCRE::PCRE |
( |
const char * |
pattern | ) |
|
◆ PCRE() [2/14]
re2::PCRE::PCRE |
( |
const char * |
pattern, |
|
|
Option |
option |
|
) |
| |
◆ PCRE() [3/14]
re2::PCRE::PCRE |
( |
const std::string & |
pattern | ) |
|
◆ PCRE() [4/14]
re2::PCRE::PCRE |
( |
const std::string & |
pattern, |
|
|
Option |
option |
|
) |
| |
◆ PCRE() [5/14]
◆ PCRE() [6/14]
◆ ~PCRE() [1/2]
◆ PCRE() [7/14]
◆ PCRE() [8/14]
re2::PCRE::PCRE |
( |
const char * |
pattern | ) |
|
◆ PCRE() [9/14]
re2::PCRE::PCRE |
( |
const char * |
pattern, |
|
|
Option |
option |
|
) |
| |
◆ PCRE() [10/14]
re2::PCRE::PCRE |
( |
const std::string & |
pattern | ) |
|
◆ PCRE() [11/14]
re2::PCRE::PCRE |
( |
const std::string & |
pattern, |
|
|
Option |
option |
|
) |
| |
◆ PCRE() [12/14]
◆ PCRE() [13/14]
◆ ~PCRE() [2/2]
◆ PCRE() [14/14]
◆ CheckRewriteString() [1/2]
◆ CheckRewriteString() [2/2]
◆ ClearHitLimit() [1/2]
void re2::PCRE::ClearHitLimit |
( |
| ) |
|
◆ ClearHitLimit() [2/2]
void re2::PCRE::ClearHitLimit |
( |
| ) |
|
◆ Compile() [1/2]
pcre * re2::PCRE::Compile |
( |
Anchor |
anchor | ) |
|
|
private |
◆ Compile() [2/2]
pcre* re2::PCRE::Compile |
( |
Anchor |
anchor | ) |
|
|
private |
◆ DoMatch() [1/2]
◆ DoMatch() [2/2]
◆ DoMatchImpl() [1/2]
◆ DoMatchImpl() [2/2]
◆ error() [1/2]
const std::string& re2::PCRE::error |
( |
| ) |
const |
|
inline |
◆ error() [2/2]
const std::string& re2::PCRE::error |
( |
| ) |
const |
|
inline |
◆ Extract() [1/2]
◆ Extract() [2/2]
◆ GlobalReplace() [1/2]
◆ GlobalReplace() [2/2]
◆ HitLimit() [1/2]
bool re2::PCRE::HitLimit |
( |
| ) |
|
◆ HitLimit() [2/2]
bool re2::PCRE::HitLimit |
( |
| ) |
|
◆ Init() [1/2]
void re2::PCRE::Init |
( |
const char * |
pattern, |
|
|
Option |
option, |
|
|
int |
match_limit, |
|
|
int |
stack_limit, |
|
|
bool |
report_errors |
|
) |
| |
|
private |
◆ Init() [2/2]
void re2::PCRE::Init |
( |
const char * |
pattern, |
|
|
Option |
option, |
|
|
int |
match_limit, |
|
|
int |
stack_limit, |
|
|
bool |
report_errors |
|
) |
| |
|
private |
◆ NumberOfCapturingGroups() [1/2]
int re2::PCRE::NumberOfCapturingGroups |
( |
| ) |
const |
◆ NumberOfCapturingGroups() [2/2]
int re2::PCRE::NumberOfCapturingGroups |
( |
| ) |
const |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pattern() [1/2]
const std::string& re2::PCRE::pattern |
( |
| ) |
const |
|
inline |
◆ pattern() [2/2]
const std::string& re2::PCRE::pattern |
( |
| ) |
const |
|
inline |
◆ QuoteMeta() [1/2]
◆ QuoteMeta() [2/2]
◆ Replace() [1/2]
◆ Replace() [2/2]
◆ Rewrite() [1/2]
◆ Rewrite() [2/2]
◆ TryMatch() [1/2]
◆ TryMatch() [2/2]
◆ Consume
◆ error_
const std::string * re2::PCRE::error_ |
|
private |
◆ FindAndConsume
◆ FullMatch
◆ hit_limit_
◆ match_limit_
int re2::PCRE::match_limit_ |
|
private |
◆ no_more_args
static Arg re2::PCRE::no_more_args |
|
static |
◆ options_
◆ PartialMatch
◆ pattern_
std::string re2::PCRE::pattern_ |
|
private |
◆ re_full_
pcre * re2::PCRE::re_full_ |
|
private |
◆ re_partial_
pcre * re2::PCRE::re_partial_ |
|
private |
◆ report_errors_
bool re2::PCRE::report_errors_ |
|
private |
◆ stack_limit_
int re2::PCRE::stack_limit_ |
|
private |
The documentation for this class was generated from the following files: