#include <re2.h>
Classes | |
class | Arg |
class | Options |
class | Set |
Static Public Member Functions | |
template<typename... A> | |
static bool | Consume (StringPiece *input, const RE2 &re, A &&... a) |
template<typename... A> | |
static bool | Consume (StringPiece *input, const RE2 &re, A &&... a) |
static bool | ConsumeN (StringPiece *input, const RE2 &re, const Arg *const args[], int n) |
static bool | ConsumeN (StringPiece *input, const RE2 &re, const Arg *const args[], int n) |
static Arg | CRadix (int *x) |
static Arg | CRadix (long *x) |
static Arg | CRadix (long long *x) |
static Arg | CRadix (short *x) |
template<typename T > | |
static Arg | CRadix (T *ptr) |
static Arg | CRadix (unsigned int *x) |
static Arg | CRadix (unsigned long *x) |
static Arg | CRadix (unsigned long long *x) |
static Arg | CRadix (unsigned short *x) |
static bool | Extract (const StringPiece &text, const RE2 &re, const StringPiece &rewrite, std::string *out) |
static bool | Extract (const StringPiece &text, const RE2 &re, const StringPiece &rewrite, std::string *out) |
template<typename... A> | |
static bool | FindAndConsume (StringPiece *input, const RE2 &re, A &&... a) |
template<typename... A> | |
static bool | FindAndConsume (StringPiece *input, const RE2 &re, A &&... a) |
static bool | FindAndConsumeN (StringPiece *input, const RE2 &re, const Arg *const args[], int n) |
static bool | FindAndConsumeN (StringPiece *input, const RE2 &re, const Arg *const args[], int n) |
template<typename... A> | |
static bool | FullMatch (const StringPiece &text, const RE2 &re, A &&... a) |
template<typename... A> | |
static bool | FullMatch (const StringPiece &text, const RE2 &re, A &&... a) |
static bool | FullMatchN (const StringPiece &text, const RE2 &re, const Arg *const args[], int n) |
static bool | FullMatchN (const StringPiece &text, const RE2 &re, const Arg *const args[], int n) |
static int | GlobalReplace (std::string *str, const RE2 &re, const StringPiece &rewrite) |
static int | GlobalReplace (std::string *str, const RE2 &re, const StringPiece &rewrite) |
static Arg | Hex (int *x) |
static Arg | Hex (long *x) |
static Arg | Hex (long long *x) |
static Arg | Hex (short *x) |
template<typename T > | |
static Arg | Hex (T *ptr) |
static Arg | Hex (unsigned int *x) |
static Arg | Hex (unsigned long *x) |
static Arg | Hex (unsigned long long *x) |
static Arg | Hex (unsigned short *x) |
static int | MaxSubmatch (const StringPiece &rewrite) |
static int | MaxSubmatch (const StringPiece &rewrite) |
static Arg | Octal (int *x) |
static Arg | Octal (long *x) |
static Arg | Octal (long long *x) |
static Arg | Octal (short *x) |
template<typename T > | |
static Arg | Octal (T *ptr) |
static Arg | Octal (unsigned int *x) |
static Arg | Octal (unsigned long *x) |
static Arg | Octal (unsigned long long *x) |
static Arg | Octal (unsigned short *x) |
template<typename... A> | |
static bool | PartialMatch (const StringPiece &text, const RE2 &re, A &&... a) |
template<typename... A> | |
static bool | PartialMatch (const StringPiece &text, const RE2 &re, A &&... a) |
static bool | PartialMatchN (const StringPiece &text, const RE2 &re, const Arg *const args[], int n) |
static bool | PartialMatchN (const StringPiece &text, const RE2 &re, const Arg *const args[], int n) |
static std::string | QuoteMeta (const StringPiece &unquoted) |
static std::string | QuoteMeta (const StringPiece &unquoted) |
static bool | Replace (std::string *str, const RE2 &re, const StringPiece &rewrite) |
static bool | Replace (std::string *str, const RE2 &re, const StringPiece &rewrite) |
Private Member Functions | |
bool | DoMatch (const StringPiece &text, Anchor re_anchor, size_t *consumed, const Arg *const args[], int n) const |
bool | DoMatch (const StringPiece &text, Anchor re_anchor, size_t *consumed, const Arg *const args[], int n) const |
void | Init (const StringPiece &pattern, const Options &options) |
void | Init (const StringPiece &pattern, const Options &options) |
RE2 & | operator= (const RE2 &)=delete |
RE2 & | operator= (const RE2 &)=delete |
RE2 (const RE2 &)=delete | |
RE2 (const RE2 &)=delete | |
re2::Prog * | ReverseProg () const |
re2::Prog * | ReverseProg () const |
Static Private Member Functions | |
template<typename F , typename SP > | |
static bool | Apply (F f, SP sp, const RE2 &re) |
template<typename F , typename SP > | |
static bool | Apply (F f, SP sp, const RE2 &re) |
template<typename F , typename SP , typename... A> | |
static bool | Apply (F f, SP sp, const RE2 &re, const A &... a) |
template<typename F , typename SP , typename... A> | |
static bool | Apply (F f, SP sp, const RE2 &re, const A &... a) |
Private Attributes | |
re2::Regexp * | entire_regexp_ |
const std::string * | error_ |
std::string | error_arg_ |
ErrorCode | error_code_ |
const std::map< int, std::string > * | group_names_ |
std::once_flag | group_names_once_ |
bool | is_one_pass_ |
const std::map< std::string, int > * | named_groups_ |
std::once_flag | named_groups_once_ |
int | num_captures_ |
Options | options_ |
std::string | pattern_ |
std::string | prefix_ |
bool | prefix_foldcase_ |
re2::Prog * | prog_ |
re2::Prog * | rprog_ |
std::once_flag | rprog_once_ |
re2::Regexp * | suffix_regexp_ |
Definition at line 211 of file bloaty/third_party/re2/re2/re2.h.
enum re2::RE2::Anchor |
Enumerator | |
---|---|
UNANCHORED | |
ANCHOR_START | |
ANCHOR_BOTH | |
UNANCHORED | |
ANCHOR_START | |
ANCHOR_BOTH |
Definition at line 472 of file bloaty/third_party/re2/re2/re2.h.
enum re2::RE2::Anchor |
Enumerator | |
---|---|
UNANCHORED | |
ANCHOR_START | |
ANCHOR_BOTH | |
UNANCHORED | |
ANCHOR_START | |
ANCHOR_BOTH |
Definition at line 519 of file re2/re2/re2.h.
Enumerator | |
---|---|
DefaultOptions | |
Latin1 | |
POSIX | |
Quiet | |
DefaultOptions | |
Latin1 | |
POSIX | |
Quiet |
Definition at line 247 of file bloaty/third_party/re2/re2/re2.h.
Enumerator | |
---|---|
DefaultOptions | |
Latin1 | |
POSIX | |
Quiet | |
DefaultOptions | |
Latin1 | |
POSIX | |
Quiet |
Definition at line 267 of file re2/re2/re2.h.
enum re2::RE2::ErrorCode |
Definition at line 220 of file bloaty/third_party/re2/re2/re2.h.
enum re2::RE2::ErrorCode |
Definition at line 239 of file re2/re2/re2.h.
re2::RE2::RE2 | ( | const char * | pattern | ) |
Definition at line 107 of file bloaty/third_party/re2/re2/re2.cc.
re2::RE2::RE2 | ( | const std::string & | pattern | ) |
Definition at line 111 of file bloaty/third_party/re2/re2/re2.cc.
re2::RE2::RE2 | ( | const StringPiece & | pattern | ) |
Definition at line 115 of file bloaty/third_party/re2/re2/re2.cc.
re2::RE2::RE2 | ( | const StringPiece & | pattern, |
const Options & | options | ||
) |
Definition at line 119 of file bloaty/third_party/re2/re2/re2.cc.
re2::RE2::~RE2 | ( | ) |
Definition at line 250 of file bloaty/third_party/re2/re2/re2.cc.
re2::RE2::RE2 | ( | const char * | pattern | ) |
re2::RE2::RE2 | ( | const std::string & | pattern | ) |
re2::RE2::RE2 | ( | const StringPiece & | pattern | ) |
re2::RE2::RE2 | ( | const StringPiece & | pattern, |
const Options & | options | ||
) |
re2::RE2::~RE2 | ( | ) |
|
inlinestaticprivate |
Definition at line 319 of file bloaty/third_party/re2/re2/re2.h.
|
inlinestaticprivate |
Definition at line 339 of file re2/re2/re2.h.
|
inlinestaticprivate |
Definition at line 324 of file bloaty/third_party/re2/re2/re2.h.
|
inlinestaticprivate |
Definition at line 344 of file re2/re2/re2.h.
Definition at line 322 of file bloaty/third_party/re2/re2/re2.cc.
bool re2::RE2::CheckRewriteString | ( | const StringPiece & | rewrite, |
std::string * | error | ||
) | const |
Definition at line 856 of file bloaty/third_party/re2/re2/re2.cc.
bool re2::RE2::CheckRewriteString | ( | const StringPiece & | rewrite, |
std::string * | error | ||
) | const |
|
inlinestatic |
Definition at line 383 of file bloaty/third_party/re2/re2/re2.h.
|
inlinestatic |
Definition at line 421 of file re2/re2/re2.h.
|
static |
Definition at line 344 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
inlinestatic |
Definition at line 891 of file re2/re2/re2.h.
|
inlinestatic |
|
private |
|
private |
|
inline |
Definition at line 275 of file bloaty/third_party/re2/re2/re2.h.
|
inline |
Definition at line 295 of file re2/re2/re2.h.
|
inline |
Definition at line 283 of file bloaty/third_party/re2/re2/re2.h.
|
inline |
Definition at line 303 of file re2/re2/re2.h.
|
inline |
Definition at line 279 of file bloaty/third_party/re2/re2/re2.h.
|
inline |
Definition at line 299 of file re2/re2/re2.h.
|
static |
Definition at line 457 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
inlinestatic |
Definition at line 392 of file bloaty/third_party/re2/re2/re2.h.
|
inlinestatic |
Definition at line 439 of file re2/re2/re2.h.
|
static |
Definition at line 355 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
inlinestatic |
Definition at line 367 of file bloaty/third_party/re2/re2/re2.h.
|
inlinestatic |
Definition at line 387 of file re2/re2/re2.h.
|
static |
Definition at line 334 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
static |
Definition at line 386 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
inlinestatic |
Definition at line 898 of file re2/re2/re2.h.
|
inlinestatic |
|
private |
Definition at line 167 of file bloaty/third_party/re2/re2/re2.cc.
|
private |
bool re2::RE2::Match | ( | const StringPiece & | text, |
size_t | startpos, | ||
size_t | endpos, | ||
Anchor | re_anchor, | ||
StringPiece * | submatch, | ||
int | nsubmatch | ||
) | const |
Definition at line 572 of file bloaty/third_party/re2/re2/re2.cc.
bool re2::RE2::Match | ( | const StringPiece & | text, |
size_t | startpos, | ||
size_t | endpos, | ||
Anchor | re_anchor, | ||
StringPiece * | submatch, | ||
int | nsubmatch | ||
) | const |
|
static |
Definition at line 896 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
Definition at line 311 of file bloaty/third_party/re2/re2/re2.cc.
|
inline |
Definition at line 481 of file bloaty/third_party/re2/re2/re2.h.
|
inline |
Definition at line 528 of file re2/re2/re2.h.
|
inlinestatic |
Definition at line 905 of file re2/re2/re2.h.
|
inlinestatic |
|
inline |
Definition at line 266 of file bloaty/third_party/re2/re2/re2.h.
|
inline |
Definition at line 286 of file re2/re2/re2.h.
Definition at line 699 of file bloaty/third_party/re2/re2/re2.h.
Definition at line 735 of file re2/re2/re2.h.
|
inlinestatic |
Definition at line 374 of file bloaty/third_party/re2/re2/re2.h.
|
inlinestatic |
Definition at line 403 of file re2/re2/re2.h.
|
static |
Definition at line 339 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
inline |
Definition at line 271 of file bloaty/third_party/re2/re2/re2.h.
|
inline |
Definition at line 291 of file re2/re2/re2.h.
Definition at line 511 of file bloaty/third_party/re2/re2/re2.cc.
Definition at line 295 of file bloaty/third_party/re2/re2/re2.cc.
Definition at line 334 of file re2/re2/re2.cc.
int re2::RE2::ProgramSize | ( | ) | const |
Definition at line 265 of file bloaty/third_party/re2/re2/re2.cc.
int re2::RE2::ProgramSize | ( | ) | const |
|
static |
Definition at line 473 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
inline |
Definition at line 299 of file bloaty/third_party/re2/re2/re2.h.
|
inline |
Definition at line 319 of file re2/re2/re2.h.
|
static |
Definition at line 366 of file bloaty/third_party/re2/re2/re2.cc.
|
static |
|
private |
Definition at line 235 of file bloaty/third_party/re2/re2/re2.cc.
|
private |
Definition at line 301 of file bloaty/third_party/re2/re2/re2.cc.
Definition at line 340 of file re2/re2/re2.cc.
int re2::RE2::ReverseProgramSize | ( | ) | const |
Definition at line 271 of file bloaty/third_party/re2/re2/re2.cc.
int re2::RE2::ReverseProgramSize | ( | ) | const |
bool re2::RE2::Rewrite | ( | std::string * | out, |
const StringPiece & | rewrite, | ||
const StringPiece * | vec, | ||
int | veclen | ||
) | const |
Definition at line 915 of file bloaty/third_party/re2/re2/re2.cc.
bool re2::RE2::Rewrite | ( | std::string * | out, |
const StringPiece & | rewrite, | ||
const StringPiece * | vec, | ||
int | veclen | ||
) | const |
|
private |
Definition at line 744 of file bloaty/third_party/re2/re2/re2.h.
|
mutableprivate |
Definition at line 751 of file bloaty/third_party/re2/re2/re2.h.
|
mutableprivate |
Definition at line 754 of file bloaty/third_party/re2/re2/re2.h.
|
mutableprivate |
Definition at line 753 of file bloaty/third_party/re2/re2/re2.h.
Definition at line 760 of file bloaty/third_party/re2/re2/re2.h.
|
mutableprivate |
Definition at line 765 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 748 of file bloaty/third_party/re2/re2/re2.h.
Definition at line 757 of file bloaty/third_party/re2/re2/re2.h.
|
mutableprivate |
Definition at line 764 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 747 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 741 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 740 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 742 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 743 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 746 of file bloaty/third_party/re2/re2/re2.h.
|
mutableprivate |
Definition at line 750 of file bloaty/third_party/re2/re2/re2.h.
|
mutableprivate |
Definition at line 763 of file bloaty/third_party/re2/re2/re2.h.
|
private |
Definition at line 745 of file bloaty/third_party/re2/re2/re2.h.