Lines Matching refs:ncap
556 int ncap = 1 + NumberOfCapturingGroups(); in Match() local
557 if (ncap > nsubmatch) in Match()
558 ncap = nsubmatch; in Match()
598 bool can_one_pass = (is_one_pass_ && ncap <= Prog::kMaxOnePassCapture); in Match()
683 (ncap > 1 || text.size() <= 8)) { in Match()
691 if (can_bit_state && text.size() <= bit_state_text_max && ncap > 1) { in Match()
718 if (!skipped_test && ncap <= 1) { in Match()
720 if (ncap == 1) in Match()
742 if (!prog_->SearchOnePass(subtext1, text, anchor, kind, submatch, ncap)) { in Match()
753 kind, submatch, ncap)) { in Match()
763 if (!prog_->SearchNFA(subtext1, text, anchor, kind, submatch, ncap)) { in Match()
777 for (int i = ncap; i < nsubmatch; i++) in Match()
826 int ncap = NumberOfCapturingGroups(); in DoMatch() local
827 if (ncap < n) { in DoMatch()
829 VLOG(1) << "Asked for " << n << " but only have " << ncap; in DoMatch()