Home
last modified time | relevance | path

Searched refs:nsub_ (Results 1 – 5 of 5) sorted by relevance

/external/regex-re2/re2/
Dwalker-inl.h186 if (re->nsub_ == 1) in WalkInternal()
188 else if (re->nsub_ > 1) in WalkInternal()
189 s->child_args = new T[re->nsub_]; in WalkInternal()
193 if (re->nsub_ > 0) { in WalkInternal()
195 if (s->n < re->nsub_) { in WalkInternal()
207 if (re->nsub_ > 1) in WalkInternal()
Dregexp.cc21 nsub_(0), in Regexp()
33 if (nsub_ > 0) in ~Regexp()
55 if (nsub_ == 0) { in QuickDestroy()
136 if (re->nsub_ > 0) { in Destroy()
138 for (int i = 0; i < re->nsub_; i++) { in Destroy()
151 if (re->nsub_ > 1) in Destroy()
153 re->nsub_ = 0; in Destroy()
631 while (i < nsub_ && sub[i]->op_ == kRegexpBeginText) in RequiredPrefix()
633 if (i == 0 || i >= nsub_) in RequiredPrefix()
676 if (i < nsub_) { in RequiredPrefix()
[all …]
Dsimplify.cc63 for (int i = 0; i < nsub_; i++) in ComputeSimple()
202 for (int i = 0; i < re->nsub_; i++) { in PostVisit()
211 for (int i = 0; i < re->nsub_; i++) { in PostVisit()
219 nre->AllocSub(re->nsub_); in PostVisit()
221 for (int i = 0; i <re->nsub_; i++) in PostVisit()
Dregexp.h314 int nsub() { return nsub_; } in nsub()
320 if(nsub_ <= 1) in sub()
495 nsub_ = n; in AllocSub()
535 uint16 nsub_; variable
Dparse.cc675 re->nsub_--; in RemoveLeadingRegexp()
676 memmove(sub, sub + 1, re->nsub_ * sizeof sub[0]); in RemoveLeadingRegexp()
775 re->nsub_--; in RemoveLeadingString()
776 memmove(sub, sub + 1, re->nsub_ * sizeof sub[0]); in RemoveLeadingString()
1005 n += sub->nsub_; in DoCollapse()
1023 for (int k = sub->nsub_ - 1; k >= 0; k--) in DoCollapse()