Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
re2::BitState Class Reference

Public Member Functions

 BitState (Prog *prog)
 
 BitState (Prog *prog)
 
bool Search (const StringPiece &text, const StringPiece &context, bool anchored, bool longest, StringPiece *submatch, int nsubmatch)
 
bool Search (const StringPiece &text, const StringPiece &context, bool anchored, bool longest, StringPiece *submatch, int nsubmatch)
 

Private Member Functions

 BitState (const BitState &)=delete
 
void GrowStack ()
 
void GrowStack ()
 
BitStateoperator= (const BitState &)=delete
 
void Push (int id, const char *p)
 
void Push (int id, const char *p)
 
bool ShouldVisit (int id, const char *p)
 
bool ShouldVisit (int id, const char *p)
 
bool TrySearch (int id, const char *p)
 
bool TrySearch (int id, const char *p)
 

Private Attributes

bool anchored_
 
PODArray< const char * > cap_
 
StringPiece context_
 
bool endmatch_
 
PODArray< Jobjob_
 
bool longest_
 
int njob_
 
int nsubmatch_
 
Progprog_
 
StringPiecesubmatch_
 
StringPiece text_
 
PODArray< uint32_tvisited_
 
PODArray< uint64_tvisited_
 

Static Private Attributes

static constexpr int kVisitedBits = 64
 
static const int VisitedBits = 32
 

Detailed Description

Definition at line 39 of file bloaty/third_party/re2/re2/bitstate.cc.

Constructor & Destructor Documentation

◆ BitState() [1/3]

re2::BitState::BitState ( Prog prog)
explicit

Definition at line 73 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ BitState() [2/3]

re2::BitState::BitState ( Prog prog)
explicit

◆ BitState() [3/3]

re2::BitState::BitState ( const BitState )
privatedelete

Member Function Documentation

◆ GrowStack() [1/2]

void re2::BitState::GrowStack ( )
private

Definition at line 97 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ GrowStack() [2/2]

void re2::BitState::GrowStack ( )
private

◆ operator=()

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

◆ Push() [1/2]

void re2::BitState::Push ( int  id,
const char *  p 
)
private

Definition at line 104 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ Push() [2/2]

void re2::BitState::Push ( int  id,
const char *  p 
)
private

◆ Search() [1/2]

bool re2::BitState::Search ( const StringPiece text,
const StringPiece context,
bool  anchored,
bool  longest,
StringPiece submatch,
int  nsubmatch 
)

Definition at line 285 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ Search() [2/2]

bool re2::BitState::Search ( const StringPiece text,
const StringPiece context,
bool  anchored,
bool  longest,
StringPiece submatch,
int  nsubmatch 
)

◆ ShouldVisit() [1/2]

bool re2::BitState::ShouldVisit ( int  id,
const char *  p 
)
inlineprivate

Definition at line 87 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ ShouldVisit() [2/2]

bool re2::BitState::ShouldVisit ( int  id,
const char *  p 
)
inlineprivate

◆ TrySearch() [1/2]

bool re2::BitState::TrySearch ( int  id,
const char *  p 
)
private

◆ TrySearch() [2/2]

bool re2::BitState::TrySearch ( int  id,
const char *  p 
)
private

Definition at line 135 of file bloaty/third_party/re2/re2/bitstate.cc.

Member Data Documentation

◆ anchored_

bool re2::BitState::anchored_
private

Definition at line 59 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ cap_

PODArray< const char * > re2::BitState::cap_
private

Definition at line 68 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ context_

StringPiece re2::BitState::context_
private

Definition at line 58 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ endmatch_

bool re2::BitState::endmatch_
private

Definition at line 61 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ job_

PODArray< Job > re2::BitState::job_
private

Definition at line 69 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ kVisitedBits

constexpr int re2::BitState::kVisitedBits = 64
staticconstexprprivate

Definition at line 66 of file re2/re2/bitstate.cc.

◆ longest_

bool re2::BitState::longest_
private

Definition at line 60 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ njob_

int re2::BitState::njob_
private

Definition at line 70 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ nsubmatch_

int re2::BitState::nsubmatch_
private

Definition at line 63 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ prog_

Prog * re2::BitState::prog_
private

Definition at line 56 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ submatch_

StringPiece * re2::BitState::submatch_
private

Definition at line 62 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ text_

StringPiece re2::BitState::text_
private

Definition at line 57 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ visited_ [1/2]

PODArray<uint32_t> re2::BitState::visited_
private

Definition at line 67 of file bloaty/third_party/re2/re2/bitstate.cc.

◆ visited_ [2/2]

PODArray<uint64_t> re2::BitState::visited_
private

Definition at line 67 of file re2/re2/bitstate.cc.

◆ VisitedBits

const int re2::BitState::VisitedBits = 32
staticprivate

Definition at line 66 of file bloaty/third_party/re2/re2/bitstate.cc.


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


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