Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
re2::RE2 Class Reference

#include <re2.h>

Classes

class  Arg
 
class  Options
 
class  Set
 

Public Types

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  CannedOptions {
  DefaultOptions = 0, Latin1, POSIX, Quiet,
  DefaultOptions = 0, Latin1, POSIX, Quiet
}
 
enum  CannedOptions {
  DefaultOptions = 0, Latin1, POSIX, Quiet,
  DefaultOptions = 0, Latin1, POSIX, Quiet
}
 
enum  ErrorCode {
  NoError = 0, ErrorInternal, ErrorBadEscape, ErrorBadCharClass,
  ErrorBadCharRange, ErrorMissingBracket, ErrorMissingParen, ErrorTrailingBackslash,
  ErrorRepeatArgument, ErrorRepeatSize, ErrorRepeatOp, ErrorBadPerlOp,
  ErrorBadUTF8, ErrorBadNamedCapture, ErrorPatternTooLarge, NoError = 0,
  ErrorInternal, ErrorBadEscape, ErrorBadCharClass, ErrorBadCharRange,
  ErrorMissingBracket, ErrorMissingParen, ErrorUnexpectedParen, ErrorTrailingBackslash,
  ErrorRepeatArgument, ErrorRepeatSize, ErrorRepeatOp, ErrorBadPerlOp,
  ErrorBadUTF8, ErrorBadNamedCapture, ErrorPatternTooLarge
}
 
enum  ErrorCode {
  NoError = 0, ErrorInternal, ErrorBadEscape, ErrorBadCharClass,
  ErrorBadCharRange, ErrorMissingBracket, ErrorMissingParen, ErrorTrailingBackslash,
  ErrorRepeatArgument, ErrorRepeatSize, ErrorRepeatOp, ErrorBadPerlOp,
  ErrorBadUTF8, ErrorBadNamedCapture, ErrorPatternTooLarge, NoError = 0,
  ErrorInternal, ErrorBadEscape, ErrorBadCharClass, ErrorBadCharRange,
  ErrorMissingBracket, ErrorMissingParen, ErrorUnexpectedParen, ErrorTrailingBackslash,
  ErrorRepeatArgument, ErrorRepeatSize, ErrorRepeatOp, ErrorBadPerlOp,
  ErrorBadUTF8, ErrorBadNamedCapture, ErrorPatternTooLarge
}
 

Public Member Functions

const std::map< int, std::string > & CapturingGroupNames () const
 
const std::map< int, std::string > & CapturingGroupNames () const
 
bool CheckRewriteString (const StringPiece &rewrite, std::string *error) const
 
bool CheckRewriteString (const StringPiece &rewrite, std::string *error) const
 
const std::string & error () const
 
const std::string & error () const
 
const std::string & error_arg () const
 
const std::string & error_arg () const
 
ErrorCode error_code () const
 
ErrorCode error_code () const
 
bool Match (const StringPiece &text, size_t startpos, size_t endpos, Anchor re_anchor, StringPiece *submatch, int nsubmatch) const
 
bool Match (const StringPiece &text, size_t startpos, size_t endpos, Anchor re_anchor, StringPiece *submatch, int nsubmatch) const
 
const std::map< std::string, int > & NamedCapturingGroups () const
 
const std::map< std::string, int > & NamedCapturingGroups () const
 
int NumberOfCapturingGroups () const
 
int NumberOfCapturingGroups () const
 
bool ok () const
 
bool ok () const
 
const Optionsoptions () const
 
const Optionsoptions () const
 
const std::string & pattern () const
 
const std::string & pattern () const
 
bool PossibleMatchRange (std::string *min, std::string *max, int maxlen) const
 
bool PossibleMatchRange (std::string *min, std::string *max, int maxlen) const
 
int ProgramFanout (std::map< int, int > *histogram) const
 
int ProgramFanout (std::vector< int > *histogram) const
 
int ProgramSize () const
 
int ProgramSize () const
 
 RE2 (const char *pattern)
 
 RE2 (const char *pattern)
 
 RE2 (const std::string &pattern)
 
 RE2 (const std::string &pattern)
 
 RE2 (const StringPiece &pattern)
 
 RE2 (const StringPiece &pattern)
 
 RE2 (const StringPiece &pattern, const Options &options)
 
 RE2 (const StringPiece &pattern, const Options &options)
 
re2::RegexpRegexp () const
 
re2::RegexpRegexp () const
 
int ReverseProgramFanout (std::map< int, int > *histogram) const
 
int ReverseProgramFanout (std::vector< int > *histogram) const
 
int ReverseProgramSize () const
 
int ReverseProgramSize () const
 
bool Rewrite (std::string *out, const StringPiece &rewrite, const StringPiece *vec, int veclen) const
 
bool Rewrite (std::string *out, const StringPiece &rewrite, const StringPiece *vec, int veclen) const
 
 ~RE2 ()
 
 ~RE2 ()
 

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)
 
RE2operator= (const RE2 &)=delete
 
RE2operator= (const RE2 &)=delete
 
 RE2 (const RE2 &)=delete
 
 RE2 (const RE2 &)=delete
 
re2::ProgReverseProg () const
 
re2::ProgReverseProg () 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::Regexpentire_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::Progprog_
 
re2::Progrprog_
 
std::once_flag rprog_once_
 
re2::Regexpsuffix_regexp_
 

Detailed Description

Definition at line 211 of file bloaty/third_party/re2/re2/re2.h.

Member Enumeration Documentation

◆ Anchor [1/2]

Enumerator
UNANCHORED 
ANCHOR_START 
ANCHOR_BOTH 
UNANCHORED 
ANCHOR_START 
ANCHOR_BOTH 

Definition at line 472 of file bloaty/third_party/re2/re2/re2.h.

◆ Anchor [2/2]

Enumerator
UNANCHORED 
ANCHOR_START 
ANCHOR_BOTH 
UNANCHORED 
ANCHOR_START 
ANCHOR_BOTH 

Definition at line 519 of file re2/re2/re2.h.

◆ CannedOptions [1/2]

Enumerator
DefaultOptions 
Latin1 
POSIX 
Quiet 
DefaultOptions 
Latin1 
POSIX 
Quiet 

Definition at line 247 of file bloaty/third_party/re2/re2/re2.h.

◆ CannedOptions [2/2]

Enumerator
DefaultOptions 
Latin1 
POSIX 
Quiet 
DefaultOptions 
Latin1 
POSIX 
Quiet 

Definition at line 267 of file re2/re2/re2.h.

◆ ErrorCode [1/2]

Enumerator
NoError 
ErrorInternal 
ErrorBadEscape 
ErrorBadCharClass 
ErrorBadCharRange 
ErrorMissingBracket 
ErrorMissingParen 
ErrorTrailingBackslash 
ErrorRepeatArgument 
ErrorRepeatSize 
ErrorRepeatOp 
ErrorBadPerlOp 
ErrorBadUTF8 
ErrorBadNamedCapture 
ErrorPatternTooLarge 
NoError 
ErrorInternal 
ErrorBadEscape 
ErrorBadCharClass 
ErrorBadCharRange 
ErrorMissingBracket 
ErrorMissingParen 
ErrorUnexpectedParen 
ErrorTrailingBackslash 
ErrorRepeatArgument 
ErrorRepeatSize 
ErrorRepeatOp 
ErrorBadPerlOp 
ErrorBadUTF8 
ErrorBadNamedCapture 
ErrorPatternTooLarge 

Definition at line 220 of file bloaty/third_party/re2/re2/re2.h.

◆ ErrorCode [2/2]

Enumerator
NoError 
ErrorInternal 
ErrorBadEscape 
ErrorBadCharClass 
ErrorBadCharRange 
ErrorMissingBracket 
ErrorMissingParen 
ErrorTrailingBackslash 
ErrorRepeatArgument 
ErrorRepeatSize 
ErrorRepeatOp 
ErrorBadPerlOp 
ErrorBadUTF8 
ErrorBadNamedCapture 
ErrorPatternTooLarge 
NoError 
ErrorInternal 
ErrorBadEscape 
ErrorBadCharClass 
ErrorBadCharRange 
ErrorMissingBracket 
ErrorMissingParen 
ErrorUnexpectedParen 
ErrorTrailingBackslash 
ErrorRepeatArgument 
ErrorRepeatSize 
ErrorRepeatOp 
ErrorBadPerlOp 
ErrorBadUTF8 
ErrorBadNamedCapture 
ErrorPatternTooLarge 

Definition at line 239 of file re2/re2/re2.h.

Constructor & Destructor Documentation

◆ RE2() [1/10]

re2::RE2::RE2 ( const char *  pattern)

Definition at line 107 of file bloaty/third_party/re2/re2/re2.cc.

◆ RE2() [2/10]

re2::RE2::RE2 ( const std::string &  pattern)

Definition at line 111 of file bloaty/third_party/re2/re2/re2.cc.

◆ RE2() [3/10]

re2::RE2::RE2 ( const StringPiece pattern)

Definition at line 115 of file bloaty/third_party/re2/re2/re2.cc.

◆ RE2() [4/10]

re2::RE2::RE2 ( const StringPiece pattern,
const Options options 
)

Definition at line 119 of file bloaty/third_party/re2/re2/re2.cc.

◆ ~RE2() [1/2]

re2::RE2::~RE2 ( )

Definition at line 250 of file bloaty/third_party/re2/re2/re2.cc.

◆ RE2() [5/10]

re2::RE2::RE2 ( const RE2 )
privatedelete

◆ RE2() [6/10]

re2::RE2::RE2 ( const char *  pattern)

◆ RE2() [7/10]

re2::RE2::RE2 ( const std::string &  pattern)

◆ RE2() [8/10]

re2::RE2::RE2 ( const StringPiece pattern)

◆ RE2() [9/10]

re2::RE2::RE2 ( const StringPiece pattern,
const Options options 
)

◆ ~RE2() [2/2]

re2::RE2::~RE2 ( )

◆ RE2() [10/10]

re2::RE2::RE2 ( const RE2 )
privatedelete

Member Function Documentation

◆ Apply() [1/4]

template<typename F , typename SP >
static bool re2::RE2::Apply ( f,
SP  sp,
const RE2 re 
)
inlinestaticprivate

Definition at line 319 of file bloaty/third_party/re2/re2/re2.h.

◆ Apply() [2/4]

template<typename F , typename SP >
static bool re2::RE2::Apply ( f,
SP  sp,
const RE2 re 
)
inlinestaticprivate

Definition at line 339 of file re2/re2/re2.h.

◆ Apply() [3/4]

template<typename F , typename SP , typename... A>
static bool re2::RE2::Apply ( f,
SP  sp,
const RE2 re,
const A &...  a 
)
inlinestaticprivate

Definition at line 324 of file bloaty/third_party/re2/re2/re2.h.

◆ Apply() [4/4]

template<typename F , typename SP , typename... A>
static bool re2::RE2::Apply ( f,
SP  sp,
const RE2 re,
const A &...  a 
)
inlinestaticprivate

Definition at line 344 of file re2/re2/re2.h.

◆ CapturingGroupNames() [1/2]

const std::map< int, std::string > & re2::RE2::CapturingGroupNames ( ) const

Definition at line 322 of file bloaty/third_party/re2/re2/re2.cc.

◆ CapturingGroupNames() [2/2]

const std::map<int, std::string>& re2::RE2::CapturingGroupNames ( ) const

◆ CheckRewriteString() [1/2]

bool re2::RE2::CheckRewriteString ( const StringPiece rewrite,
std::string *  error 
) const

Definition at line 856 of file bloaty/third_party/re2/re2/re2.cc.

◆ CheckRewriteString() [2/2]

bool re2::RE2::CheckRewriteString ( const StringPiece rewrite,
std::string *  error 
) const

◆ Consume() [1/2]

template<typename... A>
static bool re2::RE2::Consume ( StringPiece input,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 383 of file bloaty/third_party/re2/re2/re2.h.

◆ Consume() [2/2]

template<typename... A>
static bool re2::RE2::Consume ( StringPiece input,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 421 of file re2/re2/re2.h.

◆ ConsumeN() [1/2]

bool re2::RE2::ConsumeN ( StringPiece input,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

Definition at line 344 of file bloaty/third_party/re2/re2/re2.cc.

◆ ConsumeN() [2/2]

static bool re2::RE2::ConsumeN ( StringPiece input,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

◆ CRadix() [1/9]

static Arg re2::RE2::CRadix ( int x)
inlinestatic

◆ CRadix() [2/9]

static Arg re2::RE2::CRadix ( long x)
inlinestatic

◆ CRadix() [3/9]

static Arg re2::RE2::CRadix ( long long x)
inlinestatic

◆ CRadix() [4/9]

static Arg re2::RE2::CRadix ( short *  x)
inlinestatic

◆ CRadix() [5/9]

template<typename T >
RE2::Arg re2::RE2::CRadix ( T ptr)
inlinestatic

Definition at line 891 of file re2/re2/re2.h.

◆ CRadix() [6/9]

static Arg re2::RE2::CRadix ( unsigned int x)
inlinestatic

◆ CRadix() [7/9]

static Arg re2::RE2::CRadix ( unsigned long x)
inlinestatic

◆ CRadix() [8/9]

static Arg re2::RE2::CRadix ( unsigned long long x)
inlinestatic

◆ CRadix() [9/9]

static Arg re2::RE2::CRadix ( unsigned short *  x)
inlinestatic

◆ DoMatch() [1/2]

bool re2::RE2::DoMatch ( const StringPiece text,
Anchor  re_anchor,
size_t *  consumed,
const Arg *const  args[],
int  n 
) const
private

◆ DoMatch() [2/2]

bool re2::RE2::DoMatch ( const StringPiece text,
Anchor  re_anchor,
size_t *  consumed,
const Arg *const  args[],
int  n 
) const
private

◆ error() [1/2]

const std::string& re2::RE2::error ( ) const
inline

Definition at line 275 of file bloaty/third_party/re2/re2/re2.h.

◆ error() [2/2]

const std::string& re2::RE2::error ( ) const
inline

Definition at line 295 of file re2/re2/re2.h.

◆ error_arg() [1/2]

const std::string& re2::RE2::error_arg ( ) const
inline

Definition at line 283 of file bloaty/third_party/re2/re2/re2.h.

◆ error_arg() [2/2]

const std::string& re2::RE2::error_arg ( ) const
inline

Definition at line 303 of file re2/re2/re2.h.

◆ error_code() [1/2]

ErrorCode re2::RE2::error_code ( ) const
inline

Definition at line 279 of file bloaty/third_party/re2/re2/re2.h.

◆ error_code() [2/2]

ErrorCode re2::RE2::error_code ( ) const
inline

Definition at line 299 of file re2/re2/re2.h.

◆ Extract() [1/2]

bool re2::RE2::Extract ( const StringPiece text,
const RE2 re,
const StringPiece rewrite,
std::string *  out 
)
static

Definition at line 457 of file bloaty/third_party/re2/re2/re2.cc.

◆ Extract() [2/2]

static bool re2::RE2::Extract ( const StringPiece text,
const RE2 re,
const StringPiece rewrite,
std::string *  out 
)
static

◆ FindAndConsume() [1/2]

template<typename... A>
static bool re2::RE2::FindAndConsume ( StringPiece input,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 392 of file bloaty/third_party/re2/re2/re2.h.

◆ FindAndConsume() [2/2]

template<typename... A>
static bool re2::RE2::FindAndConsume ( StringPiece input,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 439 of file re2/re2/re2.h.

◆ FindAndConsumeN() [1/2]

bool re2::RE2::FindAndConsumeN ( StringPiece input,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

Definition at line 355 of file bloaty/third_party/re2/re2/re2.cc.

◆ FindAndConsumeN() [2/2]

static bool re2::RE2::FindAndConsumeN ( StringPiece input,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

◆ FullMatch() [1/2]

template<typename... A>
static bool re2::RE2::FullMatch ( const StringPiece text,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 367 of file bloaty/third_party/re2/re2/re2.h.

◆ FullMatch() [2/2]

template<typename... A>
static bool re2::RE2::FullMatch ( const StringPiece text,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 387 of file re2/re2/re2.h.

◆ FullMatchN() [1/2]

bool re2::RE2::FullMatchN ( const StringPiece text,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

Definition at line 334 of file bloaty/third_party/re2/re2/re2.cc.

◆ FullMatchN() [2/2]

static bool re2::RE2::FullMatchN ( const StringPiece text,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

◆ GlobalReplace() [1/2]

int re2::RE2::GlobalReplace ( std::string *  str,
const RE2 re,
const StringPiece rewrite 
)
static

Definition at line 386 of file bloaty/third_party/re2/re2/re2.cc.

◆ GlobalReplace() [2/2]

static int re2::RE2::GlobalReplace ( std::string *  str,
const RE2 re,
const StringPiece rewrite 
)
static

◆ Hex() [1/9]

static Arg re2::RE2::Hex ( int x)
inlinestatic

◆ Hex() [2/9]

static Arg re2::RE2::Hex ( long x)
inlinestatic

◆ Hex() [3/9]

static Arg re2::RE2::Hex ( long long x)
inlinestatic

◆ Hex() [4/9]

static Arg re2::RE2::Hex ( short *  x)
inlinestatic

◆ Hex() [5/9]

template<typename T >
RE2::Arg re2::RE2::Hex ( T ptr)
inlinestatic

Definition at line 898 of file re2/re2/re2.h.

◆ Hex() [6/9]

static Arg re2::RE2::Hex ( unsigned int x)
inlinestatic

◆ Hex() [7/9]

static Arg re2::RE2::Hex ( unsigned long x)
inlinestatic

◆ Hex() [8/9]

static Arg re2::RE2::Hex ( unsigned long long x)
inlinestatic

◆ Hex() [9/9]

static Arg re2::RE2::Hex ( unsigned short *  x)
inlinestatic

◆ Init() [1/2]

void re2::RE2::Init ( const StringPiece pattern,
const Options options 
)
private

Definition at line 167 of file bloaty/third_party/re2/re2/re2.cc.

◆ Init() [2/2]

void re2::RE2::Init ( const StringPiece pattern,
const Options options 
)
private

◆ Match() [1/2]

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.

◆ Match() [2/2]

bool re2::RE2::Match ( const StringPiece text,
size_t  startpos,
size_t  endpos,
Anchor  re_anchor,
StringPiece submatch,
int  nsubmatch 
) const

◆ MaxSubmatch() [1/2]

int re2::RE2::MaxSubmatch ( const StringPiece rewrite)
static

Definition at line 896 of file bloaty/third_party/re2/re2/re2.cc.

◆ MaxSubmatch() [2/2]

static int re2::RE2::MaxSubmatch ( const StringPiece rewrite)
static

◆ NamedCapturingGroups() [1/2]

const std::map< std::string, int > & re2::RE2::NamedCapturingGroups ( ) const

Definition at line 311 of file bloaty/third_party/re2/re2/re2.cc.

◆ NamedCapturingGroups() [2/2]

const std::map<std::string, int>& re2::RE2::NamedCapturingGroups ( ) const

◆ NumberOfCapturingGroups() [1/2]

int re2::RE2::NumberOfCapturingGroups ( ) const
inline

Definition at line 481 of file bloaty/third_party/re2/re2/re2.h.

◆ NumberOfCapturingGroups() [2/2]

int re2::RE2::NumberOfCapturingGroups ( ) const
inline

Definition at line 528 of file re2/re2/re2.h.

◆ Octal() [1/9]

static Arg re2::RE2::Octal ( int x)
inlinestatic

◆ Octal() [2/9]

static Arg re2::RE2::Octal ( long x)
inlinestatic

◆ Octal() [3/9]

static Arg re2::RE2::Octal ( long long x)
inlinestatic

◆ Octal() [4/9]

static Arg re2::RE2::Octal ( short *  x)
inlinestatic

◆ Octal() [5/9]

template<typename T >
RE2::Arg re2::RE2::Octal ( T ptr)
inlinestatic

Definition at line 905 of file re2/re2/re2.h.

◆ Octal() [6/9]

static Arg re2::RE2::Octal ( unsigned int x)
inlinestatic

◆ Octal() [7/9]

static Arg re2::RE2::Octal ( unsigned long x)
inlinestatic

◆ Octal() [8/9]

static Arg re2::RE2::Octal ( unsigned long long x)
inlinestatic

◆ Octal() [9/9]

static Arg re2::RE2::Octal ( unsigned short *  x)
inlinestatic

◆ ok() [1/2]

bool re2::RE2::ok ( ) const
inline

Definition at line 266 of file bloaty/third_party/re2/re2/re2.h.

◆ ok() [2/2]

bool re2::RE2::ok ( ) const
inline

Definition at line 286 of file re2/re2/re2.h.

◆ operator=() [1/2]

RE2& re2::RE2::operator= ( const RE2 )
privatedelete

◆ operator=() [2/2]

RE2& re2::RE2::operator= ( const RE2 )
privatedelete

◆ options() [1/2]

const Options& re2::RE2::options ( ) const
inline

Definition at line 699 of file bloaty/third_party/re2/re2/re2.h.

◆ options() [2/2]

const Options& re2::RE2::options ( ) const
inline

Definition at line 735 of file re2/re2/re2.h.

◆ PartialMatch() [1/2]

template<typename... A>
static bool re2::RE2::PartialMatch ( const StringPiece text,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 374 of file bloaty/third_party/re2/re2/re2.h.

◆ PartialMatch() [2/2]

template<typename... A>
static bool re2::RE2::PartialMatch ( const StringPiece text,
const RE2 re,
A &&...  a 
)
inlinestatic

Definition at line 403 of file re2/re2/re2.h.

◆ PartialMatchN() [1/2]

bool re2::RE2::PartialMatchN ( const StringPiece text,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

Definition at line 339 of file bloaty/third_party/re2/re2/re2.cc.

◆ PartialMatchN() [2/2]

static bool re2::RE2::PartialMatchN ( const StringPiece text,
const RE2 re,
const Arg *const  args[],
int  n 
)
static

◆ pattern() [1/2]

const std::string& re2::RE2::pattern ( ) const
inline

Definition at line 271 of file bloaty/third_party/re2/re2/re2.h.

◆ pattern() [2/2]

const std::string& re2::RE2::pattern ( ) const
inline

Definition at line 291 of file re2/re2/re2.h.

◆ PossibleMatchRange() [1/2]

bool re2::RE2::PossibleMatchRange ( std::string *  min,
std::string *  max,
int  maxlen 
) const

Definition at line 511 of file bloaty/third_party/re2/re2/re2.cc.

◆ PossibleMatchRange() [2/2]

bool re2::RE2::PossibleMatchRange ( std::string *  min,
std::string *  max,
int  maxlen 
) const

◆ ProgramFanout() [1/2]

int re2::RE2::ProgramFanout ( std::map< int, int > *  histogram) const

Definition at line 295 of file bloaty/third_party/re2/re2/re2.cc.

◆ ProgramFanout() [2/2]

int re2::RE2::ProgramFanout ( std::vector< int > *  histogram) const

Definition at line 334 of file re2/re2/re2.cc.

◆ ProgramSize() [1/2]

int re2::RE2::ProgramSize ( ) const

Definition at line 265 of file bloaty/third_party/re2/re2/re2.cc.

◆ ProgramSize() [2/2]

int re2::RE2::ProgramSize ( ) const

◆ QuoteMeta() [1/2]

std::string re2::RE2::QuoteMeta ( const StringPiece unquoted)
static

Definition at line 473 of file bloaty/third_party/re2/re2/re2.cc.

◆ QuoteMeta() [2/2]

static std::string re2::RE2::QuoteMeta ( const StringPiece unquoted)
static

◆ Regexp() [1/2]

re2::Regexp* re2::RE2::Regexp ( ) const
inline

Definition at line 299 of file bloaty/third_party/re2/re2/re2.h.

◆ Regexp() [2/2]

re2::Regexp* re2::RE2::Regexp ( ) const
inline

Definition at line 319 of file re2/re2/re2.h.

◆ Replace() [1/2]

bool re2::RE2::Replace ( std::string *  str,
const RE2 re,
const StringPiece rewrite 
)
static

Definition at line 366 of file bloaty/third_party/re2/re2/re2.cc.

◆ Replace() [2/2]

static bool re2::RE2::Replace ( std::string *  str,
const RE2 re,
const StringPiece rewrite 
)
static

◆ ReverseProg() [1/2]

re2::Prog * re2::RE2::ReverseProg ( ) const
private

Definition at line 235 of file bloaty/third_party/re2/re2/re2.cc.

◆ ReverseProg() [2/2]

re2::Prog* re2::RE2::ReverseProg ( ) const
private

◆ ReverseProgramFanout() [1/2]

int re2::RE2::ReverseProgramFanout ( std::map< int, int > *  histogram) const

Definition at line 301 of file bloaty/third_party/re2/re2/re2.cc.

◆ ReverseProgramFanout() [2/2]

int re2::RE2::ReverseProgramFanout ( std::vector< int > *  histogram) const

Definition at line 340 of file re2/re2/re2.cc.

◆ ReverseProgramSize() [1/2]

int re2::RE2::ReverseProgramSize ( ) const

Definition at line 271 of file bloaty/third_party/re2/re2/re2.cc.

◆ ReverseProgramSize() [2/2]

int re2::RE2::ReverseProgramSize ( ) const

◆ Rewrite() [1/2]

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.

◆ Rewrite() [2/2]

bool re2::RE2::Rewrite ( std::string *  out,
const StringPiece rewrite,
const StringPiece vec,
int  veclen 
) const

Member Data Documentation

◆ entire_regexp_

re2::Regexp * re2::RE2::entire_regexp_
private

Definition at line 744 of file bloaty/third_party/re2/re2/re2.h.

◆ error_

const std::string * re2::RE2::error_
mutableprivate

Definition at line 751 of file bloaty/third_party/re2/re2/re2.h.

◆ error_arg_

std::string re2::RE2::error_arg_
mutableprivate

Definition at line 754 of file bloaty/third_party/re2/re2/re2.h.

◆ error_code_

ErrorCode re2::RE2::error_code_
mutableprivate

Definition at line 753 of file bloaty/third_party/re2/re2/re2.h.

◆ group_names_

const std::map< int, std::string > * re2::RE2::group_names_
mutableprivate

Definition at line 760 of file bloaty/third_party/re2/re2/re2.h.

◆ group_names_once_

std::once_flag re2::RE2::group_names_once_
mutableprivate

Definition at line 765 of file bloaty/third_party/re2/re2/re2.h.

◆ is_one_pass_

bool re2::RE2::is_one_pass_
private

Definition at line 748 of file bloaty/third_party/re2/re2/re2.h.

◆ named_groups_

const std::map< std::string, int > * re2::RE2::named_groups_
mutableprivate

Definition at line 757 of file bloaty/third_party/re2/re2/re2.h.

◆ named_groups_once_

std::once_flag re2::RE2::named_groups_once_
mutableprivate

Definition at line 764 of file bloaty/third_party/re2/re2/re2.h.

◆ num_captures_

int re2::RE2::num_captures_
private

Definition at line 747 of file bloaty/third_party/re2/re2/re2.h.

◆ options_

Options re2::RE2::options_
private

Definition at line 741 of file bloaty/third_party/re2/re2/re2.h.

◆ pattern_

std::string re2::RE2::pattern_
private

Definition at line 740 of file bloaty/third_party/re2/re2/re2.h.

◆ prefix_

std::string re2::RE2::prefix_
private

Definition at line 742 of file bloaty/third_party/re2/re2/re2.h.

◆ prefix_foldcase_

bool re2::RE2::prefix_foldcase_
private

Definition at line 743 of file bloaty/third_party/re2/re2/re2.h.

◆ prog_

re2::Prog * re2::RE2::prog_
private

Definition at line 746 of file bloaty/third_party/re2/re2/re2.h.

◆ rprog_

re2::Prog * re2::RE2::rprog_
mutableprivate

Definition at line 750 of file bloaty/third_party/re2/re2/re2.h.

◆ rprog_once_

std::once_flag re2::RE2::rprog_once_
mutableprivate

Definition at line 763 of file bloaty/third_party/re2/re2/re2.h.

◆ suffix_regexp_

re2::Regexp * re2::RE2::suffix_regexp_
private

Definition at line 745 of file bloaty/third_party/re2/re2/re2.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:42