Lines Matching refs:match

187 T("  -o	ignore match[] overrun errors\n");
218 T(" b REG_NOTBOL lhs does not match ^\n");
220 T(" d REG_SHELL_DOT explicit leading . match\n");
221 T(" e REG_NOTEOL rhs does not match $\n");
223 T(" g FNM_LEADING_DIR testfnmatch only -- match until /\n");
229 T(" m REG_MINIMAL minimal match\n");
230 T(" n REG_NEWLINE explicit \\n match\n");
232 T(" p REG_SHELL_PATH explicit / match\n");
239 T(" w REG_NOSUB no subexpression match array\n");
269 T(" Field 3: the string to match. X...{RE_DUP_MAX} expands to RE_DUP_MAX\n");
273 T(" codes (with REG_ omitted) or the match array, a list of (m,n)\n");
277 T(" error code. The match[] array is initialized to (-2,-2) before\n");
860 matchprint(regmatch_t* match, int nmatch, int nsub, char* ans, unsigned long test)
865 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))
870 matchoffprint(match[i].rm_so);
872 matchoffprint(match[i].rm_eo);
884 matchcheck(regmatch_t* match, int nmatch, int nsub, char* ans, char* re, char* s, int len, int flags, unsigned long test)
949 if (m!=match[i].rm_so || n!=match[i].rm_eo)
953 report("failed: match was", NiL, re, s, len, NiL, flags, test);
954 matchprint(match, nmatch, nsub, ans, test);
961 if (match[i].rm_so!=-1 || match[i].rm_eo!=-1)
965 if ((test & TEST_IGNORE_POSITION) && (match[i].rm_so<0 || match[i].rm_eo<0))
972 report("failed: match was", NiL, re, s, len, NiL, flags, test);
973 matchprint(match, nmatch, nsub, ans, test);
979 if (!(test & TEST_IGNORE_OVER) && match[nmatch].rm_so != state.NOMATCH.rm_so)
983 report("failed: overran match array", NiL, re, s, len, NiL, flags, 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)
1122 if (!(test & (TEST_ACTUAL|TEST_BASELINE)) || !accept && !match)
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)
1255 regmatch_t match[100];
1541 if (nmatch >= elementsof(match))
2123 for (i = 0; i < elementsof(match); i++)
2124 match[i] = state.NOMATCH;
2129 eret = regnexec(&preg, s, nexec, nmatch, match, eflags);
2136 eret = regexec(&preg, s, nmatch, match, eflags);
2140 eret = regexec(&preg, s, nmatch, match, eflags);
2149 eret = regsubexec(&preg, s, nmatch, match);
2153 eret = regsubexec(&preg, s, nmatch, match);
2176 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, 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);
2228 if (match[0].rm_so != state.NOMATCH.rm_so)
2234 report("failed: no match but match array assigned", NiL, re, s, nstr, msg, flags, 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);