Lines Matching refs:nsub

860 matchprint(regmatch_t* match, int nmatch, int nsub, char* ans, unsigned long test)
864 for (; nmatch > nsub + 1; nmatch--)
884 matchcheck(regmatch_t* match, int nmatch, int nsub, char* ans, char* re, char* s, int len, int flags, unsigned long test)
954 matchprint(match, nmatch, nsub, ans, test);
973 matchprint(match, nmatch, nsub, ans, test);
984 matchprint(match, nmatch + 1, nsub, NiL, test);
1080 extract(int* tabs, char* spec, char* re, char* s, char* ans, char* msg, char* accept, regmatch_t* match, int nmatch, int nsub, unsigned long skip, unsigned long level, unsigned long test)
1127 matchprint(match, nmatch, nsub, NiL, test);
1140 catchfree(regex_t* preg, int flags, int* tabs, char* spec, char* re, char* s, char* ans, char* msg, char* accept, regmatch_t* match, int nmatch, int nsub, unsigned long skip, unsigned long level, unsigned long test)
1229 int nsub;
1535 nsub = -1;
2012 if (!(flags & REG_NOSUB) && nsub < 0 && *ans == '(')
2016 nsub++;
2018 nsub--;
2019 if (nsub >= 0)
2023 if (nmatch > nsub)
2024 nmatch = nsub + 1;
2026 else if (nsub != preg.re_nsub)
2028 if (nsub > preg.re_nsub)
2035 printf("at least %d expected, %d returned\n", nsub, preg.re_nsub);
2040 nsub = preg.re_nsub;
2176 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2189 skip = extract(tabs, line, re, s, ans, msg, "NOMATCH", NiL, 0, nsub, skip, level, test|TEST_DELIMIT);
2205 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2209 matchprint(match, nmatch, nsub, NiL, test);
2235 matchprint(match, nmatch, nsub, NiL, test);
2239 else if (matchcheck(match, nmatch, nsub, ans, re, s, nstr, flags, test))
2258 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_OK);
2261 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);