Home | History | Annotate | Download | only in re2

Lines Matching refs:nsub

198 Regexp* Regexp::ConcatOrAlternate(RegexpOp op, Regexp** sub, int nsub,
200 if (nsub == 1)
206 subcopy = new Regexp*[nsub];
207 memmove(subcopy, sub, nsub * sizeof sub[0]);
209 nsub = FactorAlternation(sub, nsub, flags);
210 if (nsub == 1) {
217 if (nsub > kMaxNsub) {
220 int nbigsub = (nsub+kMaxNsub-1)/kMaxNsub;
227 nsub - (nbigsub-1)*kMaxNsub, flags,
234 re->AllocSub(nsub);
236 for (int i = 0; i < nsub; i++)
243 Regexp* Regexp::Concat(Regexp** sub, int nsub, ParseFlags flags) {
244 return ConcatOrAlternate(kRegexpConcat, sub, nsub, flags, false);
247 Regexp* Regexp::Alternate(Regexp** sub, int nsub, ParseFlags flags) {
248 return ConcatOrAlternate(kRegexpAlternate, sub, nsub, flags, true);
251 Regexp* Regexp::AlternateNoFactor(Regexp** sub, int nsub, ParseFlags flags) {
252 return ConcatOrAlternate(kRegexpAlternate, sub, nsub, flags, false);
338 return a->nsub() == b->nsub();
408 for (int i = 0; i < a->nsub(); i++) {