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