Home | History | Annotate | Download | only in testdata

Lines Matching refs:nsub

858 matchprint(regmatch_t* match, int nmatch, int nsub, char* ans, unsigned long test)
862 for (; nmatch > nsub + 1; nmatch--)
882 matchcheck(regmatch_t* match, int nmatch, int nsub, char* ans, char* re, char* s, int len, int flags, unsigned long test)
952 matchprint(match, nmatch, nsub, ans, test);
971 matchprint(match, nmatch, nsub, ans, test);
982 matchprint(match, nmatch + 1, nsub, NiL, test);
1078 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)
1125 matchprint(match, nmatch, nsub, NiL, test);
1138 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)
1227 int nsub;
1533 nsub = -1;
2010 if (!(flags & REG_NOSUB) && nsub < 0 && *ans == '(')
2014 nsub++;
2016 nsub--;
2017 if (nsub >= 0)
2021 if (nmatch > nsub)
2022 nmatch = nsub + 1;
2024 else if (nsub != preg.re_nsub)
2026 if (nsub > preg.re_nsub)
2033 printf("at least %d expected, %d returned\n", nsub, preg.re_nsub);
2038 nsub = preg.re_nsub;
2174 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2187 nsub, skip, level, test|TEST_DELIMIT);
2203 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2207 matchprint(match, nmatch, nsub, NiL, test);
2233 matchprint(match, nmatch, nsub, NiL, test);
2237 else if (matchcheck(match, nmatch, nsub, ans, re, s, nstr, flags, test))
2256 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_OK);
2259 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);