Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
re2::Compiler Class Reference
Inheritance diagram for re2::Compiler:
Inheritance graph
[legend]

Public Member Functions

void Add_80_10ffff ()
 
void Add_80_10ffff ()
 
void AddRuneRange (Rune lo, Rune hi, bool foldcase)
 
void AddRuneRange (Rune lo, Rune hi, bool foldcase)
 
void AddRuneRangeLatin1 (Rune lo, Rune hi, bool foldcase)
 
void AddRuneRangeLatin1 (Rune lo, Rune hi, bool foldcase)
 
void AddRuneRangeUTF8 (Rune lo, Rune hi, bool foldcase)
 
void AddRuneRangeUTF8 (Rune lo, Rune hi, bool foldcase)
 
void AddSuffix (int id)
 
void AddSuffix (int id)
 
int AddSuffixRecursive (int root, int id)
 
int AddSuffixRecursive (int root, int id)
 
int AllocInst (int n)
 
int AllocInst (int n)
 
Frag Alt (Frag a, Frag b)
 
Frag Alt (Frag a, Frag b)
 
void BeginRange ()
 
void BeginRange ()
 
Frag ByteRange (int lo, int hi, bool foldcase)
 
Frag ByteRange (int lo, int hi, bool foldcase)
 
bool ByteRangeEqual (int id1, int id2)
 
bool ByteRangeEqual (int id1, int id2)
 
int CachedRuneByteSuffix (uint8_t lo, uint8_t hi, bool foldcase, int next)
 
int CachedRuneByteSuffix (uint8_t lo, uint8_t hi, bool foldcase, int next)
 
Frag Capture (Frag a, int n)
 
Frag Capture (Frag a, int n)
 
Frag Cat (Frag a, Frag b)
 
Frag Cat (Frag a, Frag b)
 
 Compiler ()
 
 Compiler ()
 
Frag Copy (Frag arg)
 
Frag Copy (Frag arg)
 
Frag DotStar ()
 
Frag DotStar ()
 
Frag EmptyWidth (EmptyOp op)
 
Frag EmptyWidth (EmptyOp op)
 
Frag EndRange ()
 
Frag EndRange ()
 
Frag FindByteRange (int root, int id)
 
Frag FindByteRange (int root, int id)
 
ProgFinish ()
 
ProgFinish (Regexp *re)
 
bool IsCachedRuneByteSuffix (int id)
 
bool IsCachedRuneByteSuffix (int id)
 
Frag Literal (Rune r, bool foldcase)
 
Frag Literal (Rune r, bool foldcase)
 
Frag Match (int32_t id)
 
Frag Match (int32_t id)
 
Frag NoMatch ()
 
Frag NoMatch ()
 
Frag Nop ()
 
Frag Nop ()
 
Frag Plus (Frag a, bool nongreedy)
 
Frag Plus (Frag a, bool nongreedy)
 
Frag PostVisit (Regexp *re, Frag parent_arg, Frag pre_arg, Frag *child_args, int nchild_args)
 
Frag PostVisit (Regexp *re, Frag parent_arg, Frag pre_arg, Frag *child_args, int nchild_args)
 
Frag PreVisit (Regexp *re, Frag parent_arg, bool *stop)
 
Frag PreVisit (Regexp *re, Frag parent_arg, bool *stop)
 
Frag Quest (Frag a, bool nongreedy)
 
Frag Quest (Frag a, bool nongreedy)
 
void Setup (Regexp::ParseFlags flags, int64_t max_mem, RE2::Anchor anchor)
 
void Setup (Regexp::ParseFlags, int64_t, RE2::Anchor)
 
Frag ShortVisit (Regexp *re, Frag parent_arg)
 
Frag ShortVisit (Regexp *re, Frag parent_arg)
 
Frag Star (Frag a, bool nongreedy)
 
Frag Star (Frag a, bool nongreedy)
 
int UncachedRuneByteSuffix (uint8_t lo, uint8_t hi, bool foldcase, int next)
 
int UncachedRuneByteSuffix (uint8_t lo, uint8_t hi, bool foldcase, int next)
 
 ~Compiler ()
 
 ~Compiler ()
 
- Public Member Functions inherited from re2::Regexp::Walker< Frag >
void Reset ()
 
void Reset ()
 
bool stopped_early ()
 
bool stopped_early ()
 
Frag Walk (Regexp *re, Frag top_arg)
 
Frag Walk (Regexp *re, Frag top_arg)
 
 Walker ()
 
 Walker ()
 
Frag WalkExponential (Regexp *re, Frag top_arg, int max_visits)
 
Frag WalkExponential (Regexp *re, Frag top_arg, int max_visits)
 
virtual ~Walker ()
 
virtual ~Walker ()
 

Static Public Member Functions

static ProgCompile (Regexp *re, bool reversed, int64_t max_mem)
 
static ProgCompile (Regexp *re, bool reversed, int64_t max_mem)
 
static ProgCompileSet (Regexp *re, RE2::Anchor anchor, int64_t max_mem)
 
static ProgCompileSet (Regexp *re, RE2::Anchor anchor, int64_t max_mem)
 

Private Member Functions

 Compiler (const Compiler &)=delete
 
 Compiler (const Compiler &)=delete
 
Compileroperator= (const Compiler &)=delete
 
Compileroperator= (const Compiler &)=delete
 

Private Attributes

RE2::Anchor anchor_
 
Encoding encoding_
 
bool failed_
 
PODArray< Prog::Instinst_
 
int64_t max_mem_
 
int max_ninst_
 
int ninst_
 
Progprog_
 
bool reversed_
 
std::unordered_map< uint64_t, intrune_cache_
 
Frag rune_range_
 

Detailed Description

Definition at line 127 of file bloaty/third_party/re2/re2/compile.cc.

Constructor & Destructor Documentation

◆ Compiler() [1/4]

re2::Compiler::Compiler ( )
explicit

Definition at line 255 of file bloaty/third_party/re2/re2/compile.cc.

◆ ~Compiler() [1/2]

re2::Compiler::~Compiler ( )

Definition at line 268 of file bloaty/third_party/re2/re2/compile.cc.

◆ Compiler() [2/4]

re2::Compiler::Compiler ( const Compiler )
privatedelete

◆ Compiler() [3/4]

re2::Compiler::Compiler ( )
explicit

◆ ~Compiler() [2/2]

re2::Compiler::~Compiler ( )

◆ Compiler() [4/4]

re2::Compiler::Compiler ( const Compiler )
privatedelete

Member Function Documentation

◆ Add_80_10ffff() [1/2]

void re2::Compiler::Add_80_10ffff ( )

◆ Add_80_10ffff() [2/2]

void re2::Compiler::Add_80_10ffff ( )

Definition at line 696 of file bloaty/third_party/re2/re2/compile.cc.

◆ AddRuneRange() [1/2]

void re2::Compiler::AddRuneRange ( Rune  lo,
Rune  hi,
bool  foldcase 
)

◆ AddRuneRange() [2/2]

void re2::Compiler::AddRuneRange ( Rune  lo,
Rune  hi,
bool  foldcase 
)

Definition at line 643 of file bloaty/third_party/re2/re2/compile.cc.

◆ AddRuneRangeLatin1() [1/2]

void re2::Compiler::AddRuneRangeLatin1 ( Rune  lo,
Rune  hi,
bool  foldcase 
)

◆ AddRuneRangeLatin1() [2/2]

void re2::Compiler::AddRuneRangeLatin1 ( Rune  lo,
Rune  hi,
bool  foldcase 
)

Definition at line 655 of file bloaty/third_party/re2/re2/compile.cc.

◆ AddRuneRangeUTF8() [1/2]

void re2::Compiler::AddRuneRangeUTF8 ( Rune  lo,
Rune  hi,
bool  foldcase 
)

◆ AddRuneRangeUTF8() [2/2]

void re2::Compiler::AddRuneRangeUTF8 ( Rune  lo,
Rune  hi,
bool  foldcase 
)

Definition at line 710 of file bloaty/third_party/re2/re2/compile.cc.

◆ AddSuffix() [1/2]

void re2::Compiler::AddSuffix ( int  id)

◆ AddSuffix() [2/2]

void re2::Compiler::AddSuffix ( int  id)

Definition at line 513 of file bloaty/third_party/re2/re2/compile.cc.

◆ AddSuffixRecursive() [1/2]

int re2::Compiler::AddSuffixRecursive ( int  root,
int  id 
)

◆ AddSuffixRecursive() [2/2]

int re2::Compiler::AddSuffixRecursive ( int  root,
int  id 
)

Definition at line 537 of file bloaty/third_party/re2/re2/compile.cc.

◆ AllocInst() [1/2]

int re2::Compiler::AllocInst ( int  n)

◆ AllocInst() [2/2]

int re2::Compiler::AllocInst ( int  n)

Definition at line 272 of file bloaty/third_party/re2/re2/compile.cc.

◆ Alt() [1/2]

Frag re2::Compiler::Alt ( Frag  a,
Frag  b 
)

◆ Alt() [2/2]

Frag re2::Compiler::Alt ( Frag  a,
Frag  b 
)

Definition at line 335 of file bloaty/third_party/re2/re2/compile.cc.

◆ BeginRange() [1/2]

void re2::Compiler::BeginRange ( )

◆ BeginRange() [2/2]

void re2::Compiler::BeginRange ( )

Definition at line 467 of file bloaty/third_party/re2/re2/compile.cc.

◆ ByteRange() [1/2]

Frag re2::Compiler::ByteRange ( int  lo,
int  hi,
bool  foldcase 
)

◆ ByteRange() [2/2]

Frag re2::Compiler::ByteRange ( int  lo,
int  hi,
bool  foldcase 
)

Definition at line 399 of file bloaty/third_party/re2/re2/compile.cc.

◆ ByteRangeEqual() [1/2]

bool re2::Compiler::ByteRangeEqual ( int  id1,
int  id2 
)

◆ ByteRangeEqual() [2/2]

bool re2::Compiler::ByteRangeEqual ( int  id1,
int  id2 
)

Definition at line 595 of file bloaty/third_party/re2/re2/compile.cc.

◆ CachedRuneByteSuffix() [1/2]

int re2::Compiler::CachedRuneByteSuffix ( uint8_t  lo,
uint8_t  hi,
bool  foldcase,
int  next 
)

◆ CachedRuneByteSuffix() [2/2]

int re2::Compiler::CachedRuneByteSuffix ( uint8_t  lo,
uint8_t  hi,
bool  foldcase,
int  next 
)

Definition at line 492 of file bloaty/third_party/re2/re2/compile.cc.

◆ Capture() [1/2]

Frag re2::Compiler::Capture ( Frag  a,
int  n 
)

◆ Capture() [2/2]

Frag re2::Compiler::Capture ( Frag  a,
int  n 
)

Definition at line 435 of file bloaty/third_party/re2/re2/compile.cc.

◆ Cat() [1/2]

Frag re2::Compiler::Cat ( Frag  a,
Frag  b 
)

◆ Cat() [2/2]

Frag re2::Compiler::Cat ( Frag  a,
Frag  b 
)

Definition at line 310 of file bloaty/third_party/re2/re2/compile.cc.

◆ Compile() [1/2]

static Prog* re2::Compiler::Compile ( Regexp re,
bool  reversed,
int64_t  max_mem 
)
static

◆ Compile() [2/2]

Prog * re2::Compiler::Compile ( Regexp re,
bool  reversed,
int64_t  max_mem 
)
static

Definition at line 1136 of file bloaty/third_party/re2/re2/compile.cc.

◆ CompileSet() [1/2]

static Prog* re2::Compiler::CompileSet ( Regexp re,
RE2::Anchor  anchor,
int64_t  max_mem 
)
static

◆ CompileSet() [2/2]

Prog * re2::Compiler::CompileSet ( Regexp re,
RE2::Anchor  anchor,
int64_t  max_mem 
)
static

Definition at line 1233 of file bloaty/third_party/re2/re2/compile.cc.

◆ Copy() [1/2]

Frag re2::Compiler::Copy ( Frag  arg)
virtual

Reimplemented from re2::Regexp::Walker< Frag >.

◆ Copy() [2/2]

Frag re2::Compiler::Copy ( Frag  arg)
virtual

Reimplemented from re2::Regexp::Walker< Frag >.

Definition at line 810 of file bloaty/third_party/re2/re2/compile.cc.

◆ DotStar() [1/2]

Frag re2::Compiler::DotStar ( )

◆ DotStar() [2/2]

Frag re2::Compiler::DotStar ( )

Definition at line 1228 of file bloaty/third_party/re2/re2/compile.cc.

◆ EmptyWidth() [1/2]

Frag re2::Compiler::EmptyWidth ( EmptyOp  op)

◆ EmptyWidth() [2/2]

Frag re2::Compiler::EmptyWidth ( EmptyOp  op)

Definition at line 426 of file bloaty/third_party/re2/re2/compile.cc.

◆ EndRange() [1/2]

Frag re2::Compiler::EndRange ( )

◆ EndRange() [2/2]

Frag re2::Compiler::EndRange ( )

Definition at line 633 of file bloaty/third_party/re2/re2/compile.cc.

◆ FindByteRange() [1/2]

Frag re2::Compiler::FindByteRange ( int  root,
int  id 
)

◆ FindByteRange() [2/2]

Frag re2::Compiler::FindByteRange ( int  root,
int  id 
)

Definition at line 601 of file bloaty/third_party/re2/re2/compile.cc.

◆ Finish() [1/2]

Prog * re2::Compiler::Finish ( )

Definition at line 1184 of file bloaty/third_party/re2/re2/compile.cc.

◆ Finish() [2/2]

Prog * re2::Compiler::Finish ( Regexp re)

Definition at line 1159 of file re2/re2/compile.cc.

◆ IsCachedRuneByteSuffix() [1/2]

bool re2::Compiler::IsCachedRuneByteSuffix ( int  id)

◆ IsCachedRuneByteSuffix() [2/2]

bool re2::Compiler::IsCachedRuneByteSuffix ( int  id)

Definition at line 503 of file bloaty/third_party/re2/re2/compile.cc.

◆ Literal() [1/2]

Frag re2::Compiler::Literal ( Rune  r,
bool  foldcase 
)

◆ Literal() [2/2]

Frag re2::Compiler::Literal ( Rune  r,
bool  foldcase 
)

Definition at line 833 of file bloaty/third_party/re2/re2/compile.cc.

◆ Match() [1/2]

Frag re2::Compiler::Match ( int32_t  id)

◆ Match() [2/2]

Frag re2::Compiler::Match ( int32_t  id)

Definition at line 417 of file bloaty/third_party/re2/re2/compile.cc.

◆ NoMatch() [1/2]

Frag re2::Compiler::NoMatch ( )

◆ NoMatch() [2/2]

Frag re2::Compiler::NoMatch ( )

Definition at line 300 of file bloaty/third_party/re2/re2/compile.cc.

◆ Nop() [1/2]

Frag re2::Compiler::Nop ( )

◆ Nop() [2/2]

Frag re2::Compiler::Nop ( )

Definition at line 408 of file bloaty/third_party/re2/re2/compile.cc.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Plus() [1/2]

Frag re2::Compiler::Plus ( Frag  a,
bool  nongreedy 
)

◆ Plus() [2/2]

Frag re2::Compiler::Plus ( Frag  a,
bool  nongreedy 
)

Definition at line 374 of file bloaty/third_party/re2/re2/compile.cc.

◆ PostVisit() [1/2]

Frag re2::Compiler::PostVisit ( Regexp re,
Frag  parent_arg,
Frag  pre_arg,
Frag child_args,
int  nchild_args 
)
virtual

Reimplemented from re2::Regexp::Walker< Frag >.

◆ PostVisit() [2/2]

Frag re2::Compiler::PostVisit ( Regexp re,
Frag  parent_arg,
Frag  pre_arg,
Frag child_args,
int  nchild_args 
)
virtual

Reimplemented from re2::Regexp::Walker< Frag >.

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

◆ PreVisit() [1/2]

Frag re2::Compiler::PreVisit ( Regexp re,
Frag  parent_arg,
bool stop 
)
virtual

Reimplemented from re2::Regexp::Walker< Frag >.

◆ PreVisit() [2/2]

Frag re2::Compiler::PreVisit ( Regexp re,
Frag  parent_arg,
bool stop 
)
virtual

Reimplemented from re2::Regexp::Walker< Frag >.

Definition at line 825 of file bloaty/third_party/re2/re2/compile.cc.

◆ Quest() [1/2]

Frag re2::Compiler::Quest ( Frag  a,
bool  nongreedy 
)

◆ Quest() [2/2]

Frag re2::Compiler::Quest ( Frag  a,
bool  nongreedy 
)

Definition at line 381 of file bloaty/third_party/re2/re2/compile.cc.

◆ Setup() [1/2]

void re2::Compiler::Setup ( Regexp::ParseFlags  flags,
int64_t  max_mem,
RE2::Anchor  anchor 
)

◆ Setup() [2/2]

void re2::Compiler::Setup ( Regexp::ParseFlags  flags,
int64_t  max_mem,
RE2::Anchor  anchor 
)

Definition at line 1096 of file bloaty/third_party/re2/re2/compile.cc.

◆ ShortVisit() [1/2]

Frag re2::Compiler::ShortVisit ( Regexp re,
Frag  parent_arg 
)
virtual

◆ ShortVisit() [2/2]

Frag re2::Compiler::ShortVisit ( Regexp re,
Frag  parent_arg 
)
virtual

◆ Star() [1/2]

Frag re2::Compiler::Star ( Frag  a,
bool  nongreedy 
)

◆ Star() [2/2]

Frag re2::Compiler::Star ( Frag  a,
bool  nongreedy 
)

Definition at line 358 of file bloaty/third_party/re2/re2/compile.cc.

◆ UncachedRuneByteSuffix() [1/2]

int re2::Compiler::UncachedRuneByteSuffix ( uint8_t  lo,
uint8_t  hi,
bool  foldcase,
int  next 
)

◆ UncachedRuneByteSuffix() [2/2]

int re2::Compiler::UncachedRuneByteSuffix ( uint8_t  lo,
uint8_t  hi,
bool  foldcase,
int  next 
)

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

Member Data Documentation

◆ anchor_

RE2::Anchor re2::Compiler::anchor_
private

Definition at line 249 of file bloaty/third_party/re2/re2/compile.cc.

◆ encoding_

Encoding re2::Compiler::encoding_
private

Definition at line 237 of file bloaty/third_party/re2/re2/compile.cc.

◆ failed_

bool re2::Compiler::failed_
private

Definition at line 236 of file bloaty/third_party/re2/re2/compile.cc.

◆ inst_

PODArray< Prog::Inst > re2::Compiler::inst_
private

Definition at line 240 of file bloaty/third_party/re2/re2/compile.cc.

◆ max_mem_

int64_t re2::Compiler::max_mem_
private

Definition at line 244 of file bloaty/third_party/re2/re2/compile.cc.

◆ max_ninst_

int re2::Compiler::max_ninst_
private

Definition at line 242 of file bloaty/third_party/re2/re2/compile.cc.

◆ ninst_

int re2::Compiler::ninst_
private

Definition at line 241 of file bloaty/third_party/re2/re2/compile.cc.

◆ prog_

Prog * re2::Compiler::prog_
private

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

◆ reversed_

bool re2::Compiler::reversed_
private

Definition at line 238 of file bloaty/third_party/re2/re2/compile.cc.

◆ rune_cache_

std::unordered_map< uint64_t, int > re2::Compiler::rune_cache_
private

Definition at line 246 of file bloaty/third_party/re2/re2/compile.cc.

◆ rune_range_

Frag re2::Compiler::rune_range_
private

Definition at line 247 of file bloaty/third_party/re2/re2/compile.cc.


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


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