Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 169) sorted by relevance

1234567

/glibc-2.36/posix/
Dbug-regex22.c28 struct re_pattern_buffer re; in main() local
40 memset (&re, 0, sizeof (re)); in main()
41 re.translate = (unsigned char *) trans; in main()
42 s = re_compile_pattern ("\\W", 2, &re); in main()
51 int ret = re_search (&re, "abc.de", 6, 0, 6, NULL); in main()
58 ret = re_search (&re, "\xc4\xd6\xae\xf7", 4, 0, 4, NULL); in main()
64 re.translate = NULL; in main()
65 regfree (&re); in main()
68 memset (&re, 0, sizeof (re)); in main()
69 re.translate = (unsigned char *) trans; in main()
[all …]
Dtst-regex.c218 regex_t re; in run_test() local
228 err = regcomp (&re, expr, REG_NEWLINE | (icase ? REG_ICASE : 0)); in run_test()
232 regerror (err, &re, buf, sizeof buf); in run_test()
245 err = regexec (&re, mem + offset, 1, ma, 0); in run_test()
252 regerror (err, &re, buf, sizeof buf); in run_test()
270 regfree (&re); in run_test()
306 err = regcomp (&re, expr, REG_NEWLINE | (icase ? REG_ICASE : 0)); in run_test()
314 err = regexec (&re, mem + offset, 1, ma, 0); in run_test()
321 regfree (&re); in run_test()
361 struct re_pattern_buffer re; in run_test_backwards() local
[all …]
Dregexbug1.c10 regex_t re; in main() local
16 reerr = regcomp (&re, "0*[0-9][0-9]", 0); in main()
20 regerror (reerr, &re, buf, sizeof buf); in main()
24 if (regexec (&re, "002", 2, ma, 0) != 0) in main()
31 regfree (&re); in main()
33 reerr = regcomp (&re, "[0a]*[0-9][0-9]", 0); in main()
37 regerror (reerr, &re, buf, sizeof buf); in main()
41 if (regexec (&re, "002", 2, ma, 0) != 0) in main()
48 regfree (&re); in main()
Dbug-regex25.c34 struct re_pattern_buffer re; in main() local
35 memset (&re, 0, sizeof (re)); in main()
40 re_compile_pattern ("$", 1, &re); in main()
42 int ret = 0, r = re_search (&re, str1, 4, 0, 4, &regs); in main()
48 r = re_search (&re, str2, 4, 0, 4, &regs); in main()
Dbug-regex16.c10 struct re_pattern_buffer re; in main() local
15 memset (&re, 0, sizeof (re)); in main()
16 s = re_compile_pattern ("[[.invalid_collating_symbol.]]", 30, &re); in main()
22 s = re_compile_pattern ("[[=invalid_equivalence_class=]]", 31, &re); in main()
28 s = re_compile_pattern ("[[:invalid_character_class:]]", 29, &re); in main()
Dbug-regex17.c63 regex_t re; in do_test() local
71 n = regcomp (&re, tests[i].pattern, tests[i].flags); in do_test()
75 regerror (n, &re, buf, sizeof (buf)); in do_test()
81 if (regexec (&re, tests[i].string, tests[i].nmatch, rm, 0)) in do_test()
85 regfree (&re); in do_test()
101 regfree (&re); in do_test()
Dbug-regex30.c62 regex_t re; in do_test() local
64 int n = regcomp (&re, tests[i].pattern, tests[i].flags); in do_test()
68 regerror (n, &re, buf, sizeof (buf)); in do_test()
74 if (regexec (&re, tests[i].string, tests[i].nmatch, rm, 0)) in do_test()
78 regfree (&re); in do_test()
94 regfree (&re); in do_test()
Dbug-regex18.c56 regex_t re; in main() local
64 n = regcomp (&re, tests[i].pattern, tests[i].flags); in main()
68 regerror (n, &re, buf, sizeof (buf)); in main()
74 if (regexec (&re, tests[i].string, tests[i].nmatch, rm, 0)) in main()
78 regfree (&re); in main()
94 regfree (&re); in main()
Dbug-regex2.c31 regex_t re; in main() local
37 n = regcomp (&re, "a test", REG_EXTENDED); in main()
41 regerror (n, &re, buf, sizeof (buf)); in main()
47 regexec (&re, text, 2, rm, 0); in main()
49 regfree (&re); in main()
Dbug-regex9.c31 regex_t re; in main() local
37 n = regcomp (&re, "^#! */.*/(k|ba||pdk|z)sh", REG_EXTENDED); in main()
41 regerror (n, &re, buf, sizeof (buf)); in main()
48 if (regexec (&re, text, 2, rm, 0)) in main()
62 regfree (&re); in main()
Dbug-regex11.c94 regex_t re; in main() local
103 n = regcomp (&re, tests[i].pattern, tests[i].flags); in main()
107 regerror (n, &re, buf, sizeof (buf)); in main()
113 if (regexec (&re, tests[i].string, tests[i].nmatch, rm, 0)) in main()
117 regfree (&re); in main()
133 regfree (&re); in main()
Dbug-regex12.c41 regex_t re; in main() local
50 n = regcomp (&re, tests[i].pattern, tests[i].flags); in main()
54 regerror (n, &re, buf, sizeof (buf)); in main()
60 if (! regexec (&re, tests[i].string, tests[i].nmatch, in main()
67 regfree (&re); in main()
Dtst-boost.c80 regex_t re; in main() local
166 n = regcomp (&re, pattern, flags); in main()
172 regerror (n, &re, buf, sizeof (buf)); in main()
181 regfree (&re); in main()
187 if (regexec (&re, string, 20, rm, eflags)) in main()
196 regfree (&re); in main()
Dbug-regex3.c28 regex_t re; in main() local
31 n = regcomp (&re, "[a-bA-B]", REG_ICASE); in main()
35 regerror (n, &re, buf, sizeof (buf)); in main()
40 regfree (&re); in main()
Drunptests.c55 regex_t re; in main() local
63 err = regcomp (&re, tests[cnt].reg, tests[cnt].options); in main()
71 regerror (err, &re, buf, sizeof (buf)); in main()
86 err = regexec (&re, tests[cnt].str, 20, match, 0); in main()
115 regfree (&re); in main()
Dtst-pcre.c132 regex_t re; in main() local
155 n = regcomp (&re, pattern, in main()
160 regerror (n, &re, buf, sizeof (buf)); in main()
167 if (regexec (&re, string, 20, rm, 0)) in main()
173 regfree (&re); in main()
Dbug-regex21.c25 regex_t re; in main() local
33 if (regcomp (&re, "X-.+:.+Y=\".*\\.(A|B|C|D|E|F|G|H|I", in main()
40 regfree (&re); in main()
Dbug-regex15.c18 regex_t re; in do_test() local
21 reerr = regcomp (&re, "^6?3?[25]?5?[14]*[25]*[69]*+[58]*87?4?$", in do_test()
26 regerror (reerr, &re, buf, sizeof buf); in do_test()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dgetsysstats.c57 next_line (int fd, char *const buffer, char **cp, char **re, in next_line() argument
61 char *nl = memchr (*cp, '\n', *re - *cp); in next_line()
66 if (*re == buffer_end) in next_line()
68 memmove (buffer, *cp, *re - *cp); in next_line()
69 *re = buffer + (*re - *cp); in next_line()
72 ssize_t n = __read_nocancel (fd, *re, buffer_end - *re); in next_line()
76 *re += n; in next_line()
78 nl = memchr (*cp, '\n', *re - *cp); in next_line()
79 while (nl == NULL && *re == buffer_end) in next_line()
82 *re = buffer + 3 * (buffer_end - buffer) / 4; in next_line()
[all …]
/glibc-2.36/scripts/
Dcheck-obsolete-constructs.py28 import re
65 PP_TOKEN_RE_ = re.compile(r"""
91 """, re.DOTALL | re.VERBOSE)
93 HEADER_NAME_RE_ = re.compile(r"""
96 """, re.DOTALL | re.VERBOSE)
98 ENDLINE_RE_ = re.compile(r"""\r|\n|\r\n""")
254 OBSOLETE_TYPE_RE_ = re.compile(r"""\A
259 \Z""", re.VERBOSE)
Dglibcextract.py21 import re
66 match = re.search('@@@name@@@([^@]*)'
97 match = re.fullmatch('#define ([0-9A-Za-z_]+)(.*)\n', line)
106 match = re.fullmatch(r'\((.*?)\) (.*)', value)
131 and re.fullmatch(macro_re, m)
133 or not re.fullmatch(exclude_re, m)))}
Ddso-ordering-test.py224 import re
337 m = re.match(r"^([+\-%^@])([0-9a-zA-Z]+)$", s)
354 m = re.match(r"^([a-zA-Z][0-9a-zA-Z]*)(-[0-9]+)?$", descr)
364 m = re.match(r"^([0-9a-zA-Z][a-zA-Z]*)([0-9]+)$", obj)
401 for m in re.finditer(tok_re, descr_str):
405 s = re.match(r"soname\(([0-9a-zA-Z{}]+)\)=([0-9a-zA-Z]+)", value)
414 if re.match(r"[{}]", obj):
1083 p = re.compile(r"#.*$")
1088 m = re.match(r"^tunable_option:\s*(.*)$", line)
1095 m = re.match(r"^clear_tunables$", line)
[all …]
/glibc-2.36/locale/programs/
Dld-messages.c125 regex_t re; in messages_finish() local
128 result = regcomp (&re, messages->yesexpr, REG_EXTENDED); in messages_finish()
133 (void) regerror (result, &re, errbuf, BUFSIZ); in messages_finish()
139 regfree (&re); in messages_finish()
158 regex_t re; in messages_finish() local
161 result = regcomp (&re, messages->noexpr, REG_EXTENDED); in messages_finish()
166 (void) regerror (result, &re, errbuf, BUFSIZ); in messages_finish()
172 regfree (&re); in messages_finish()
/glibc-2.36/stdlib/
Drpmatch.c30 const char **lastp, regex_t *re) in try() argument
39 __regfree (re); in try()
43 if (__regcomp (re, pattern, REG_EXTENDED) != 0) in try()
49 return __regexec (re, response, 0, NULL, 0) == 0 ? match : nomatch; in try()
/glibc-2.36/localedata/unicode-gen/
Dctype_compatibility.py32 import re
91 match = re.match(r'^('
93 +re.escape(char_class)+
96 +re.escape(char_class)+'\s+'
113 match = re.match(r'^<U(?P<codepoint>[0-9A-F]{4,8})>$', code_points)
118 match = re.match(
129 match = re.match(
141 match = re.match(

1234567