Home | History | Annotate | Download | only in re2

Lines Matching refs:nsub

209 Regexp* Regexp::ConcatOrAlternate(RegexpOp op, Regexp** sub, int nsub,
211 if (nsub == 1)
217 subcopy = new Regexp*[nsub];
218 memmove(subcopy, sub, nsub * sizeof sub[0]);
220 nsub = FactorAlternation(sub, nsub, flags);
221 if (nsub == 1) {
228 if (nsub > kMaxNsub) {
231 int nbigsub = (nsub+kMaxNsub-1)/kMaxNsub;
238 nsub - (nbigsub-1)*kMaxNsub, flags,
245 re->AllocSub(nsub);
247 for (int i = 0; i < nsub; i++)
254 Regexp* Regexp::Concat(Regexp** sub, int nsub, ParseFlags flags) {
255 return ConcatOrAlternate(kRegexpConcat, sub, nsub, flags, false);
258 Regexp* Regexp::Alternate(Regexp** sub, int nsub, ParseFlags flags) {
259 return ConcatOrAlternate(kRegexpAlternate, sub, nsub, flags, true);
262 Regexp* Regexp::AlternateNoFactor(Regexp** sub, int nsub, ParseFlags flags) {
263 return ConcatOrAlternate(kRegexpAlternate, sub, nsub, flags, false);
349 return a->nsub() == b->nsub();
419 for (int i = 0; i < a->nsub(); i++) {