/glibc-2.36/posix/ |
D | bug-regex22.c | 28 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 …]
|
D | tst-regex.c | 218 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 …]
|
D | regexbug1.c | 10 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()
|
D | bug-regex25.c | 34 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, ®s); in main() 48 r = re_search (&re, str2, 4, 0, 4, ®s); in main()
|
D | bug-regex16.c | 10 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()
|
D | bug-regex17.c | 63 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()
|
D | bug-regex30.c | 62 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()
|
D | bug-regex18.c | 56 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()
|
D | bug-regex2.c | 31 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()
|
D | bug-regex9.c | 31 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()
|
D | bug-regex11.c | 94 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()
|
D | bug-regex12.c | 41 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()
|
D | tst-boost.c | 80 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()
|
D | bug-regex3.c | 28 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()
|
D | runptests.c | 55 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()
|
D | tst-pcre.c | 132 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()
|
D | bug-regex21.c | 25 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()
|
D | bug-regex15.c | 18 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/ |
D | getsysstats.c | 57 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/ |
D | check-obsolete-constructs.py | 28 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)
|
D | glibcextract.py | 21 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)))}
|
D | dso-ordering-test.py | 224 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/ |
D | ld-messages.c | 125 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/ |
D | rpmatch.c | 30 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/ |
D | ctype_compatibility.py | 32 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(
|