Home
last modified time | relevance | path

Searched refs:match (Results 1 – 17 of 17) sorted by relevance

/posix/
A Dbug-regex4.c29 int match[3]; in main() local
45 match[0] = re_search_2 (&regex, "xyabez", 6, "", 0, 1, 5, NULL, 6); in main()
46 match[1] = re_search_2 (&regex, NULL, 0, "abc", 3, 0, 3, NULL, 3); in main()
47 match[2] = re_search_2 (&regex, "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 (&regex, "xyabez", 6, "", 0, 1, 5, NULL, 6); in main()
70 match[1] = re_search_2 (&regex, NULL, 0, "abc", 3, 0, 3, NULL, 3); in main()
71 match[2] = re_search_2 (&regex, "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 Dbug-regex8.c32 int match[4]; in main() local
43 match[0] = re_match_2(&regex,"xyz",3,NULL,0,0,NULL,2); in main()
55 match[1] = re_search_2(&regex,"xyz",3,NULL,0,0,2,NULL,2); in main()
68 match[2] = re_match_2(&regex,"xy ",4,NULL,0,0,NULL,3); in main()
69 match[3] = re_match_2(&regex,"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 DPCRE.tests65 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 Dbug-regex1.c13 int match; in main() local
33 match = re_match (&regex, "an", 2, 0, &regs); in main()
34 if (match != 2) in main()
36 printf ("re_match returned %d, expected 2\n", match); in main()
53 match = re_match (&regex, "an", 2, 0, &regs); in main()
54 if (match != 2) in main()
56 printf ("re_match returned %d, expected 2\n", match); in main()
73 match = re_match (&regex, "an", 2, 0, &regs); in main()
74 if (match != 2) in main()
76 printf ("re_match returned %d, expected 2\n", match); in main()
A Dbug-regex7.c33 int match, n; in main() local
47 match = re_search (&regex, "baobab", 6, 0, 6, &regs); in main()
49 if (match != 1) in main()
51 printf ("re_search returned %d, expected 1\n", match); in main()
72 match = re_match (&regex, "apl", 3, 0, &regs); in main()
74 if (match != 1) in main()
76 printf ("re_match returned %d, expected 1\n", match); in main()
A Drunptests.c56 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 Dbug-regex10.c30 int match; in main() local
43 match = re_match (&regex, "foacabdxy", 9, 2, &regs); in main()
44 if (match != 5) in main()
46 printf ("re_match returned %d, expected 5\n", match); in main()
A Dtestfnm.c70 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 Dtst-regex2.c166 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 Dtst-rxspencer.c173 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 Dwordexp.c374 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 DBOOST.tests13 ; 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 DPTESTS238 #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 Dregexec.c1048 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 Dtst-regex.input205 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 Dtst-fnmatch.input64 # expect [a-z] to match uppercase characters.
/posix/rxspencer/
A Dtests8 # 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...

Completed in 44 milliseconds