Home
last modified time | relevance | path

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

123456

/ndk/sources/host-tools/sed-4.2.1/testsuite/
Dbug-regex8.c38 int match[4]; in main() local
49 match[0] = re_match_2(&regex,"xyz",3,NULL,0,0,NULL,2); in main()
61 match[1] = re_search_2(&regex,"xyz",3,NULL,0,0,2,NULL,2); in main()
74 match[2] = re_match_2(&regex,"xy ",4,NULL,0,0,NULL,3); in main()
75 match[3] = re_match_2(&regex,"xy z",4,NULL,0,0,NULL,3); in main()
78 if (match[0] != -1 || match[1] != -1 || match[2] != -1 || match[3] != 3) in main()
81 match[0], match[1], match[2], match[3]); in main()
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 …]
Dbug-regex7.c39 int match, n; in main() local
53 match = re_search (&regex, "baobab", 6, 0, 6, &regs); in main()
55 if (match != 1) in main()
57 printf ("re_search returned %d, expected 1\n", match); in main()
78 match = re_match (&regex, "apl", 3, 0, &regs); in main()
80 if (match != 1) in main()
82 printf ("re_match returned %d, expected 1\n", match); in main()
Drunptests.c62 regmatch_t match[20]; in main() local
92 err = regexec (&re, tests[cnt].str, 20, match, 0); in main()
106 if (match[0].rm_so == 0 && tests[cnt].start == 0 in main()
107 && match[0].rm_eo == 0 && tests[cnt].end == 0) in main()
109 else if (match[0].rm_so + 1 == tests[cnt].start in main()
110 && match[0].rm_eo == tests[cnt].end) in main()
115 match[0].rm_so, match[0].rm_eo); in main()
Dbug-regex10.c36 int match; in main() local
49 match = re_match (&regex, "foacabdxy", 9, 2, &regs); in main()
50 if (match != 5) in main()
52 printf ("re_match returned %d, expected 5\n", match); in main()
Dtst-regex2.c144 int match; in main() local
147 match = re_search (&rpbuf, string, len, 0, len, in main()
149 if (match < 0) in main()
155 if (match + 11 > len in main()
156 || string + match >= strchr (string, 'R') in main()
157 || strncmp (string + match, in main()
174 if (regs.start[0] != match || regs.end[0] != match + 11) in main()
191 if (regs.start[l] != match + j in main()
Dtst-rxspencer.c169 const char *match, const char *fail) in check_match() argument
171 if (match[0] == '-' && match[1] == '\0') in check_match()
185 if (match[0] == '@') in check_match()
193 if (strncmp (string + rm[idx].rm_so, match + 1, strlen (match + 1) in check_match()
194 ? strlen (match + 1) : 1)) in check_match()
196 printf ("%s rm[%d] not matching %s\n", fail, idx, match); in check_match()
202 if (rm[idx].rm_eo - rm[idx].rm_so != strlen (match) in check_match()
203 || strncmp (string + rm[idx].rm_so, match, in check_match()
206 printf ("%s rm[%d] not matching %s\n", fail, idx, match); in check_match()
Duniq.inp415 -1 => failed to match
417 /* "Once" brackets are like assertion brackets except that after a match,
420 /* Advance to a possible match for an initial string after study */
464 /* Flag bits for the match() function */
504 /* Negative assertion: all branches must fail to match */
512 /* Or to just after \n for a multiline match if possible */
522 /* Set up the first character to match, if available. The first_char value is
529 /* The condition is an assertion. Call match() to evaluate it - setting
538 /* When a match occurs, substrings will be set for all internal extractions;
591 If the bracket fails to match, we need to restore this value and also the
[all …]
Duniq.good45 -1 => failed to match
47 /* "Once" brackets are like assertion brackets except that after a match,
49 /* Advance to a possible match for an initial string after study */
77 /* Flag bits for the match() function */
116 /* Negative assertion: all branches must fail to match */
123 /* Or to just after \n for a multiline match if possible */
133 /* Set up the first character to match, if available. The first_char value is
139 /* The condition is an assertion. Call match() to evaluate it - setting
147 /* When a match occurs, substrings will be set for all internal extractions;
187 If the bracket fails to match, we need to restore this value and also the
[all …]
/ndk/sources/third_party/googletest/googletest/test/
Dgtest_xml_output_unittest.py176 match = re.match(r'(\d+)-(\d\d)-(\d\d)T(\d\d):(\d\d):(\d\d)', date_time_str)
178 re.match,
181 year=int(match.group(1)), month=int(match.group(2)),
182 day=int(match.group(3)), hour=int(match.group(4)),
183 minute=int(match.group(5)), second=int(match.group(6)))
Dgtest_filter_unittest.py193 match = TEST_CASE_REGEX.match(line)
194 if match is not None:
195 test_case = match.group(1)
197 match = TEST_REGEX.match(line)
198 if match is not None:
199 test = match.group(1)
Dgtest_list_tests_unittest.py162 expected_output_re.match(output),
169 not EXPECTED_OUTPUT_NO_FILTER_RE.match(output),
/ndk/sources/host-tools/ndk-stack/
Dndk-stack-parser.c104 static int MatchRegex(const char* line, const regex_t* regex, regmatch_t* match);
181 regmatch_t match; in ParseLine() local
214 if (MatchRegex(line, &parser->re_pid_header, &match)) { in ParseLine()
215 fprintf(parser->out_handle, "%s\n", line + match.rm_so); in ParseLine()
223 if (MatchRegex(line, &parser->re_sig_header, &match)) { in ParseLine()
224 fprintf(parser->out_handle, "%s\n", line + match.rm_so); in ParseLine()
231 if (!MatchRegex(line, &parser->re_frame_header, &match)) in ParseLine()
246 return ParseFrame(parser, line + match.rm_so); in ParseLine()
254 MatchRegex(const char* line, const regex_t* regex, regmatch_t* match) in MatchRegex() argument
256 int err = regexec(regex, line, 1, match, 0x00400/*REG_TRACE*/); in MatchRegex()
/ndk/tests/device/test-stlport/unit/cppunit/
Dcppunit_mini.h99 bool match = (strncmp(in_desiredTest, in_className, strlen(in_className)) == 0) && in shouldRunThis() local
102 return invert ? (match ? !match : !explicit_test) in shouldRunThis()
103 : match; in shouldRunThis()
105 bool match = (strcmp(in_desiredTest, in_className) == 0); in shouldRunThis() local
106 do_progress = match; in shouldRunThis()
107 return !explicit_test && (match == !invert); in shouldRunThis()
/ndk/tests/device/test-gnustl-full/unit/cppunit/
Dcppunit_mini.h99 bool match = (strncmp(in_desiredTest, in_className, strlen(in_className)) == 0) && in shouldRunThis() local
102 return invert ? (match ? !match : !explicit_test) in shouldRunThis()
103 : match; in shouldRunThis()
105 bool match = (strcmp(in_desiredTest, in_className) == 0); in shouldRunThis() local
106 do_progress = match; in shouldRunThis()
107 return !explicit_test && (match == !invert); in shouldRunThis()
/ndk/build/awk/
Dextract-platform.awk33 if (match($0,android_regex)) {
36 else if (match($0,vendor_regex)) {
Dgen-windows-host-path.awk73 if (!match(host[nn],"^[A-Za-z]:$")) {
83 if (match(cygwin[nn],"/"lo"$")) {
92 if (match(cygwin[nn],"/"up"$")) {
Dextract-package-name.awk120 if (!match( $0, "^" sec_begin )) return 0;
121 while (!match($0, sec_end "$")) {
Dextract-minsdkversion.awk116 if (!match( $0, "^" sec_begin )) return 0;
117 while (!match($0, sec_end "$")) {
Dextract-debuggable.awk119 if (!match( $0, "^" sec_begin )) return 0;
120 while (!match($0, sec_end "$")) {
Dxml.awk104 if (!match( $0, "^" sec_begin )) return 0;
105 while (!match($0, sec_end "$")) {
Dextract-launchable.awk178 if (!match( $0, "^" sec_begin )) return 0;
179 while (!match($0, sec_end "$")) {
Dcheck-awk.awk26 if (! match(s1,"world")) {
/ndk/sources/host-tools/make-3.81/tests/scripts/functions/
Dsubstitution20 # Patsubst without '%'--shouldn't match because the whole word has to match
/ndk/sources/host-tools/ndk-stack/regex/
Dengine.c54 #define match smat macro
66 #define match lmat macro
71 struct match { struct
88 static char *dissect(struct match *, char *, char *, sopno, sopno); argument
89 static char *backref(struct match *, char *, char *, sopno, sopno, sopno, int);
90 static char *fast(struct match *, char *, char *, sopno, sopno);
91 static char *slow(struct match *, char *, char *, sopno, sopno);
104 static void print(struct match *, char *, states, int, FILE *);
107 static void at(struct match *, char *, char *, char *, sopno, sopno);
133 struct match mv; in matcher()
[all …]

123456