/bionic/tests/ |
H A D | regex_test.cpp | 24 regex_t re; local 25 ASSERT_EQ(0, regcomp(&re, "ab*c", 0)); 26 ASSERT_EQ(0, regexec(&re, "abbbc", 0, NULL, 0)); 27 ASSERT_EQ(REG_NOMATCH, regexec(&re, "foo", 0, NULL, 0)); 30 regerror(REG_NOMATCH, &re, buf, sizeof(buf)); 37 regfree(&re); 41 regex_t re; local 43 ASSERT_EQ(0, regcomp(&re, "b", 0)); 44 ASSERT_EQ(0, regexec(&re, "abc", 1, matches, 0)); 47 regfree(&re); 51 regex_t re; local [all...] |
/bionic/libc/tools/ |
H A D | check-symbols.py | 5 import re namespace 11 arch = re.sub(r'.*/linux-x86/([^/]+)/.*', r'\1', toolchain) 54 r = re.compile(r' +\d+: [0-9a-f]+ +\d+ (FUNC|OBJECT) +\S+ +\S+ +\d+ (\S+)')
|
H A D | symbols.py | 18 import re namespace 39 r = re.compile( 51 symbol = re.sub('@.*', '', symbol)
|
H A D | genserv.py | 4 import sys, os, string, re namespace 14 re_service = re.compile(r"([\d\w\-_]+)\s+(\d+)/(tcp|udp)(.*)") 15 re_alias = re.compile(r"([\d\w\-_]+)(.*)")
|
H A D | generate-NOTICE.py | 9 import re namespace 80 line = re.sub("^ \* ", "", line)
|
H A D | check-symbols-glibc.py | 20 import re namespace 31 arch = re.sub(r'.*/linux-x86/([^/]+)/.*', r'\1', toolchain) 139 # Some standard stuff isn't yet in the versions of glibc we're using.
|
H A D | gensyscalls.py | 13 import re namespace 571 pattern = re.compile(r'^\s*#\s*define\s*__NR_([a-z]\S+)') 581 m = re.search(pattern, line) 632 logging.info("re-generating stubs and support files...")
|
/bionic/libc/kernel/tools/ |
H A D | clean_header.py | 72 import sys, cpp, kernel, glob, os, re, getopt namespace 98 m = re.search(r"(^|/)asm-([\w\d_\+\.\-]+)/.*", rel_path)
|
H A D | update_all.py | 3 import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess, shutil namespace
|
H A D | kernel.py | 7 import sys, cpp, re, os.path, string, time namespace 61 re_combined = re.compile(re_combined_str) 65 re_rel_dir = re.compile(r'^.*"([\d\w_\+\.\-/]+)".*$') 297 re_CONFIG_ = re.compile(r"^(CONFIG_\w+)=(.*)$")
|
H A D | cpp.py | 7 import re namespace 591 # generate the parser, but we're not. Dijkstra's "shunting yard" 1150 # small optimization to re-generate #ifdef and #ifndef 1167 result += re.sub(r'(\w+) \(', r'\1(', expr) 1335 # We're going to parse the next tokens of the same block 1376 # We're going to skip the tokens for this declaration 1432 result = re.sub(r'(\w+) \(', r'\1(', result)
|
/bionic/tools/bionicbb/ |
H A D | tasks.py | 19 import re namespace 32 for match in re.finditer(gerrit_pattern, body, flags=re.MULTILINE):
|
H A D | presubmit.py | 21 import re namespace 191 re.finditer(r'^bionicbb:\s*(.+)$', body, flags=re.MULTILINE)]
|