Lines Matching refs:re
121 compf(const regex_t* re, const char* xstr, size_t xlen, regdisc_t* disc)
129 execf(const regex_t* re, void* data, const char* xstr, size_t xlen, const char* sstr, size_t slen, char** snxt, regdisc_t* disc)
654 report(char* comment, char* fun, char* re, char* s, int len, char* msg, int flags, unsigned long test)
659 if (re)
662 quote(re, -1, test|TEST_DELIMIT);
717 bad(char* comment, char* re, char* s, int len, unsigned long test)
720 report(comment, NiL, re, s, len, NiL, 0, test);
882 matchcheck(regmatch_t* match, int nmatch, int nsub, char* ans, char* re, char* s, int len, int flags, unsigned long test)
904 report("callout failed", NiL, re, s, len, NiL, flags, test);
914 bad("improper answer\n", re, s, -1, test);
930 bad("improper answer\n", re, s, -1, test);
946 bad("improper answer\n", re, s, -1, test);
951 report("failed: match was", NiL, re, s, len, NiL, flags, test);
970 report("failed: match was", NiL, re, s, len, NiL, flags, test);
981 report("failed: overran match array", NiL, re, s, len, NiL, flags, 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)
1116 quote(re, -1, 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)
1154 extract(tabs, spec, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
1157 report("failed", "regfree", re, NiL, -1, msg, flags, test);
1240 char* re;
1798 if (re = field[1])
1800 if (streq(re, "SAME"))
1802 re = ppat;
1808 escape(re);
1809 re = expand(re, patbuf);
1810 strcpy(ppat = pat, re);
1907 extract(tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test|TEST_OK);
1913 quote(re, -1, test|TEST_DELIMIT);
1940 cret = regcomp(&preg, re, flags);
1944 cret = regcomp(&preg, re, flags);
1951 p = re + preg.re_npat;
1962 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test))
1976 p = re + preg.re_npat;
1987 catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
1992 report("failed", fun, re, s, nstr, msg, flags, test);
1998 report("failed", fun, re, s, nstr, msg, flags, test);
2029 skip = extract(tabs, line, re, s, ans, msg, "OK", NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2032 report("re_nsub incorrect", fun, re, NiL, -1, msg, flags, test);
2045 skip = extract(tabs, line, re, s, ans, msg, "OK", NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2048 report("failed", fun, re, NiL, -1, msg, flags, test);
2051 catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
2066 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2069 report("failed", fun, re, NiL, -1, msg, flags, test);
2087 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2090 report("failed: invalid error code", NiL, re, NiL, -1, msg, flags, test);
2097 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2102 report("should fail and did", fun, re, NiL, -1, msg, flags, test);
2163 skip = extract(tabs, line, re, s, ans, msg, "NOMATCH", NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2166 report("REG_NOSUB failed", fun, re, s, nstr, msg, flags, test);
2174 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2177 report("should fail and didn't", fun, re, s, nstr, msg, flags, test);
2187 skip = extract(tabs, line, re
2190 report("failed", fun, re, s, nstr, msg, flags, test);
2203 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2206 report("should fail and didn't", fun, re, s, nstr, msg, flags, test);
2216 report("failed", fun, re, s, nstr, msg, flags, test);
2229 skip = extract(tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
2232 report("failed: no match but match array assigned", NiL, re, s, nstr, msg, flags, test);
2237 else if (matchcheck(match, nmatch, nsub, ans, re, s, nstr, flags, test))
2250 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, 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);
2260 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test))