Home | History | Annotate | Download | only in testdata

Lines Matching defs:nmatch

263 T("    number		use number for nmatch (20 by default)\n");
278 T(" each test. All array elements from 0 to nmatch-1 must be specified\n");
858 matchprint(regmatch_t* match, int nmatch, int nsub, char* ans, unsigned long test)
862 for (; nmatch > nsub + 1; nmatch--)
863 if ((match[nmatch-1].rm_so != -1 || match[nmatch-1].rm_eo != -1) && (!(test & TEST_IGNORE_POSITION) || match[nmatch-1].rm_so >= 0 && match[nmatch-1].rm_eo >= 0))
865 for (i = 0; i < nmatch; i++)
882 matchcheck(regmatch_t* match, int nmatch, int nsub, char* ans, char* re, char* s, int len, int flags, unsigned long test)
891 for (i = 0, p = ans; i < nmatch && *p; i++)
952 matchprint(match, nmatch, nsub, ans, test);
957 for (; i < nmatch; i++)
971 matchprint(match, nmatch, nsub, ans, test);
977 if (!(test & TEST_IGNORE_OVER) && match[nmatch].rm_so != state.NOMATCH.rm_so)
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)
1222 int nmatch;
1532 nmatch = 20;
1538 nmatch = strtol(p, &p, 10);
1539 if (nmatch >= elementsof(match))
1540 bad("nmatch must be < 100\n", NiL, NiL, 0, 0);
1973 if ((j = nmatch) > sizeof(buf))
2021 if (nmatch > nsub)
2022 nmatch = nsub + 1;
2127 eret = regnexec(&preg, s, nexec, nmatch, match, eflags);
2134 eret = regexec(&preg, s, nmatch, match, eflags);
2138 eret = regexec(&preg, s, nmatch, match, eflags);
2147 eret = regsubexec(&preg, s, nmatch, match);
2151 eret = regsubexec(&preg, s, nmatch, match);
2174 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, 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);