Go to the documentation of this file.
26 #include "util/logging.h"
29 #include "re2/regexp.h"
46 bool anchored,
bool longest,
47 StringPiece* submatch,
int nsubmatch);
51 void Push(
int id,
const char* p);
101 PODArray<Job>
tmp(2*
job_.size());
111 LOG(DFATAL) <<
"GrowStack() failed: "
112 <<
"njob_ = " <<
njob_ <<
", "
113 <<
"job_.size() = " <<
job_.size();
120 if (
id >= 0 &&
njob_ > 0) {
123 p ==
top->p +
top->rle + 1 &&
139 bool matched =
false;
169 switch (ip->opcode()) {
171 LOG(DFATAL) <<
"Unexpected opcode: " << ip->opcode();
178 if (ip->greedy(
prog_)) {
201 Push(
id+ip->hint(), p);
211 if (0 <= ip->cap() && ip->cap() <
cap_.
size()) {
260 StringPiece(
cap_[2 * i],
261 static_cast<size_t>(
cap_[2 * i + 1] -
cap_[2 * i]));
289 bool anchored,
bool longest,
290 StringPiece* submatch,
int nsubmatch) {
311 visited_ = PODArray<uint64_t>(nvisited);
314 int ncap = 2*nsubmatch;
317 cap_ = PODArray<const char*>(ncap);
321 job_ = PODArray<Job>(64);
335 const char* etext =
text.data() +
text.size();
336 for (
const char* p =
text.data(); p <= etext; p++) {
338 if (p < etext && prog_->can_prefix_accel()) {
bool TrySearch(int id, const char *p)
return memset(p, 0, total)
const_iterator end() const
bool Search(const StringPiece &text, const StringPiece &context, bool anchored, bool longest, StringPiece *submatch, int nsubmatch)
unsigned char match[65280+2]
PODArray< const char * > cap_
PODArray< uint64_t > visited_
static AllocList * Next(int i, AllocList *prev, LowLevelAlloc::Arena *arena)
static constexpr int kVisitedBits
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
bool SearchBitState(const StringPiece &text, const StringPiece &context, Anchor anchor, MatchKind kind, StringPiece *match, int nmatch)
unsigned __int64 uint64_t
bool ShouldVisit(int id, const char *p)
void Push(int id, const char *p)
promise_detail::Loop< F > Loop(F f)
const_pointer data() const
const_iterator begin() const
const void * PrefixAccel(const void *data, size_t size)
PODArray< uint32_t > visited_
grpc::ClientContext context
#define DCHECK(condition)
static upb_pb_encoder_segment * top(upb_pb_encoder *e)
BitState & operator=(const BitState &)=delete
static uint32_t EmptyFlags(const StringPiece &context, const char *p)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:48