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);
884 matchcheck(regmatch_t* match, int nmatch, int nsub, char* ans, char* re, char* s, int len, int flags, unsigned long test)
906 report("callout failed", NiL, re, s, len, NiL, flags, test);
916 bad("improper answer\n", re, s, -1, test);
932 bad("improper answer\n", re, s, -1, test);
948 bad("improper answer\n", re, s, -1, test);
953 report("failed: match was", NiL, re, s, len, NiL, flags, test);
972 report("failed: match was", NiL, re, s, len, NiL, flags, test);
983 report("failed: overran match array", NiL, re, s, len, NiL, flags, 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)
1118 quote(re, -1, 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)
1156 extract(tabs, spec, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
1159 report("failed", "regfree", re, NiL, -1, msg, flags, test);
1242 char* re;
1800 if (re = field[1])
1802 if (streq(re, "SAME"))
1804 re = ppat;
1810 escape(re);
1811 re = expand(re, patbuf);
1812 strcpy(ppat = pat, re);
1909 extract(tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test|TEST_OK);
1915 quote(re, -1, test|TEST_DELIMIT);
1942 cret = regcomp(&preg, re, flags);
1946 cret = regcomp(&preg, re, flags);
1953 p = re + preg.re_npat;
1964 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test))
1978 p = re + preg.re_npat;
1989 catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
1994 report("failed", fun, re, s, nstr, msg, flags, test);
2000 report("failed", fun, re, s, nstr, msg, flags, test);
2031 skip = extract(tabs, line, re, s, ans, msg, "OK", NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2034 report("re_nsub incorrect", fun, re, NiL, -1, msg, flags, test);
2047 skip = extract(tabs, line, re, s, ans, msg, "OK", NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2050 report("failed", fun, re, NiL, -1, msg, flags, test);
2053 catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
2068 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2071 report("failed", fun, re, NiL, -1, msg, flags, test);
2089 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2092 report("failed: invalid error code", NiL, re, NiL, -1, msg, flags, test);
2099 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2104 report("should fail and did", fun, re, NiL, -1, msg, flags, test);
2165 skip = extract(tabs, line, re, s, ans, msg, "NOMATCH", NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2168 report("REG_NOSUB failed", fun, re, s, nstr, msg, flags, test);
2176 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2179 report("should fail and didn't", fun, re, s, nstr, msg, flags, test);
2189 skip = extract(tabs, line, re, s, ans, msg, "NOMATCH", NiL, 0, nsub, skip, level, test|TEST_DELIMIT);
2192 report("failed", fun, re, s, nstr, msg, flags, test);
2205 skip = extract(tabs, line, re, s, ans, msg, NiL, match, nmatch, nsub, skip, level, test|TEST_DELIMIT);
2208 report("should fail and didn't", fun, re, s, nstr, msg, flags, test);
2218 report("failed", fun, re, s, nstr, msg, flags, test);
2231 skip = extract(tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test);
2234 report("failed: no match but match array assigned", NiL, re, s, nstr, msg, flags, test);
2239 else if (matchcheck(match, nmatch, nsub, ans, re, s, nstr, flags, test))
2252 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, 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);
2262 if (catchfree(&preg, flags, tabs, line, re, s, ans, msg, NiL, NiL, 0, 0, skip, level, test))