/posix/ |
A D | bug-regex4.c | 29 int match[3]; in main() local 45 match[0] = re_search_2 (®ex, "xyabez", 6, "", 0, 1, 5, NULL, 6); in main() 46 match[1] = re_search_2 (®ex, NULL, 0, "abc", 3, 0, 3, NULL, 3); in main() 47 match[2] = re_search_2 (®ex, "xya", 3, "bd", 2, 2, 3, NULL, 5); in main() 48 if (match[0] != 2 || match[1] != 0 || match[2] != 2) in main() 51 match[0], match[1], match[2]); in main() 69 match[0] = re_search_2 (®ex, "xyabez", 6, "", 0, 1, 5, NULL, 6); in main() 70 match[1] = re_search_2 (®ex, NULL, 0, "abc", 3, 0, 3, NULL, 3); in main() 71 match[2] = re_search_2 (®ex, "xya", 3, "bd", 2, 2, 3, NULL, 5); in main() 72 if (match[0] != 2 || match[1] != 0 || match[2] != 2) in main() [all …]
|
A D | bug-regex8.c | 32 int match[4]; in main() local 43 match[0] = re_match_2(®ex,"xyz",3,NULL,0,0,NULL,2); in main() 55 match[1] = re_search_2(®ex,"xyz",3,NULL,0,0,2,NULL,2); in main() 68 match[2] = re_match_2(®ex,"xy ",4,NULL,0,0,NULL,3); in main() 69 match[3] = re_match_2(®ex,"xy z",4,NULL,0,0,NULL,3); in main() 72 if (match[0] != -1 || match[1] != -1 || match[2] != -1 || match[3] != 3) in main() 75 match[0], match[1], match[2], match[3]); in main()
|
A D | PCRE.tests | 65 No match 69 No match 143 No match 145 No match 147 No match 149 No match 151 No match 153 No match 155 No match 165 No match [all …]
|
A D | bug-regex1.c | 13 int match; in main() local 33 match = re_match (®ex, "an", 2, 0, ®s); in main() 34 if (match != 2) in main() 36 printf ("re_match returned %d, expected 2\n", match); in main() 53 match = re_match (®ex, "an", 2, 0, ®s); in main() 54 if (match != 2) in main() 56 printf ("re_match returned %d, expected 2\n", match); in main() 73 match = re_match (®ex, "an", 2, 0, ®s); in main() 74 if (match != 2) in main() 76 printf ("re_match returned %d, expected 2\n", match); in main()
|
A D | bug-regex7.c | 33 int match, n; in main() local 47 match = re_search (®ex, "baobab", 6, 0, 6, ®s); in main() 49 if (match != 1) in main() 51 printf ("re_search returned %d, expected 1\n", match); in main() 72 match = re_match (®ex, "apl", 3, 0, ®s); in main() 74 if (match != 1) in main() 76 printf ("re_match returned %d, expected 1\n", match); in main()
|
A D | runptests.c | 56 regmatch_t match[20]; in main() local 86 err = regexec (&re, tests[cnt].str, 20, match, 0); in main() 100 if (match[0].rm_so == 0 && tests[cnt].start == 0 in main() 101 && match[0].rm_eo == 0 && tests[cnt].end == 0) in main() 103 else if (match[0].rm_so + 1 == tests[cnt].start in main() 104 && match[0].rm_eo == tests[cnt].end) in main() 109 match[0].rm_so, match[0].rm_eo); in main()
|
A D | bug-regex10.c | 30 int match; in main() local 43 match = re_match (®ex, "foacabdxy", 9, 2, ®s); in main() 44 if (match != 5) in main() 46 printf ("re_match returned %d, expected 5\n", match); in main()
|
A D | testfnm.c | 70 int match; in main() local 72 match = fnmatch (tests[i].pattern, tests[i].name, tests[i].flags); in main() 75 match == 0 ? "matches" : "does not match", in main() 77 match != tests[i].expected ? "FAIL" : "OK"); in main() 79 if (match != tests[i].expected) in main()
|
A D | tst-regex2.c | 166 int match = re_search (&rpbuf, string, len, 0, len, in do_test() local 168 if (match < 0) in do_test() 174 if (match + 13 > len in do_test() 175 || match < len - 100 in do_test() 176 || strncmp (string + match, in do_test() 193 if (regs.start[0] != match || regs.end[0] != match + 13) in do_test() 210 if (regs.start[l] != match + j in do_test()
|
A D | tst-rxspencer.c | 173 const char *match, const char *fail) in check_match() argument 175 if (match[0] == '-' && match[1] == '\0') in check_match() 189 if (match[0] == '@') in check_match() 197 if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1) ?: 1)) in check_match() 199 printf ("%s rm[%d] not matching %s\n", fail, idx, match); in check_match() 205 if (rm[idx].rm_eo - rm[idx].rm_so != strlen (match) in check_match() 206 || strncmp (string + rm[idx].rm_so, match, in check_match() 209 printf ("%s rm[%d] not matching %s\n", fail, idx, match); in check_match()
|
A D | wordexp.c | 374 unsigned int match; in do_parse_glob() local 391 for (match = 1; match < globbuf.gl_pathc && *word != NULL; ++match) in do_parse_glob() 396 globbuf.gl_pathv[match]); in do_parse_glob() 410 for (match = 0; match < globbuf.gl_pathc; ++match) in do_parse_glob() 412 char *matching_word = __strdup (globbuf.gl_pathv[match]); in do_parse_glob()
|
A D | BOOST.tests | 13 ; to match it against. If the second string is "!" then the expression should 15 ; This is then followed by a list of integers that specify what should match, 17 ; starting with the zeroth subexpression (the whole match). 19 ; match at all, if the first value is -1 then no part of the expression should 20 ; match the string. 278 ; re implimentations will match though. 454 ; try to match C++ syntax elements:
|
A D | PTESTS | 238 #W back references are supposed to expand to the last match, but what 239 #W if there never was a match as in this case? 243 #W These two tests have the same problem as the test in GA135. No match
|
A D | regexec.c | 1048 Idx match = 0; in check_matching() local 1097 match = 1; in check_matching() 1133 || (match && !fl_longest_match) in check_matching() 1156 match = 1; in check_matching()
|
A D | tst-regex.input | 205 MINSIGSTKZ and SIGSTKSZ. Definitions match BSD. 378 pattern if '^' cannot match at embedded newlines. 760 match `/' in filename by a character class if requested. 865 * configure.in: Correct expression to match gcc version. 1807 to match data from Unicode. 2333 (truncate): Fix function defenition to match prototype. 4251 * math/libm-test.c: Update many of the epsilon to match actual 5711 * inet/getnameinfo.c (getnameinfo): Change parameter to match 11063 * signal/signal.h: Fix selection of signal semantics to match 11122 value, to match spirit of the standard. [all …]
|
A D | tst-fnmatch.input | 64 # expect [a-z] to match uppercase characters.
|
/posix/rxspencer/ |
A D | tests | 8 # try matching it against. If there is no fourth field, the match is 10 # the RE is expected to match. If there is a fifth field, it is a comma- 11 # separated list of what the subexpressions should match, with - indicating 12 # no match for that one. In both the fourth and fifth fields, a (sub)field 13 # starting with @ indicates that the (sub)expression is expected to match 15 # test where null strings match. The character `N' in REs and strings 382 # Let's have some fun -- try to match a C comment. 387 # okay, we must not match */ inside; try to do that...
|