/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | re.py | 134 def match(pattern, string, flags=0): argument 137 return _compile(pattern, flags).match(string) 139 def search(pattern, string, flags=0): argument 142 return _compile(pattern, flags).search(string) 144 def sub(pattern, repl, string, count=0, flags=0): argument 151 return _compile(pattern, flags).sub(repl, string, count) 153 def subn(pattern, repl, string, count=0, flags=0): argument 162 return _compile(pattern, flags).subn(repl, string, count) 164 def split(pattern, string, maxsplit=0, flags=0): argument 167 return _compile(pattern, flags).split(string, maxsplit) [all …]
|
D | glob.py | 49 def glob1(dirname, pattern): argument 52 if isinstance(pattern, unicode) and not isinstance(dirname, unicode): 59 if pattern[0] != '.': 61 return fnmatch.filter(names, pattern)
|
D | sre_compile.py | 32 def _compile(code, pattern, flags): argument 40 for op, av in pattern: 361 def _compile_info(code, pattern, flags): argument 365 lo, hi = pattern.getwidth() 376 for op, av in pattern.data: 390 if not prefix and pattern.data: 391 op, av = pattern.data[0] 436 if len(prefix) == prefix_skip == len(pattern.data): 482 flags = p.pattern.flags | flags 499 pattern = p [all …]
|
D | string.py | 103 pattern = r""" variable in _TemplateMetaclass 115 pattern = cls.pattern 117 pattern = _TemplateMetaclass.pattern % { 121 cls.pattern = _re.compile(pattern, _re.IGNORECASE | _re.VERBOSE) 171 self.pattern) 172 return self.pattern.sub(convert, self.template) 204 self.pattern) 205 return self.pattern.sub(convert, self.template)
|
D | sre_parse.py | 90 def __init__(self, pattern, data=None): argument 91 self.pattern = pattern 132 return SubPattern(self.pattern, self.data[index]) 663 def parse(str, flags=0, pattern=None): argument 668 if pattern is None: 669 pattern = Pattern() 670 pattern.flags = flags 671 pattern.str = str 673 p = _parse_sub(source, pattern, 0) 684 if not (flags & SRE_FLAG_VERBOSE) and p.pattern.flags & SRE_FLAG_VERBOSE: [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | re.py | 138 def match(pattern, string, flags=0): argument 141 return _compile(pattern, flags).match(string) 143 def search(pattern, string, flags=0): argument 146 return _compile(pattern, flags).search(string) 148 def sub(pattern, repl, string, count=0, flags=0): argument 155 return _compile(pattern, flags).sub(repl, string, count) 157 def subn(pattern, repl, string, count=0, flags=0): argument 166 return _compile(pattern, flags).subn(repl, string, count) 168 def split(pattern, string, maxsplit=0, flags=0): argument 171 return _compile(pattern, flags).split(string, maxsplit) [all …]
|
D | string.py | 103 pattern = r""" variable in _TemplateMetaclass 115 pattern = cls.pattern 117 pattern = _TemplateMetaclass.pattern % { 121 cls.pattern = _re.compile(pattern, _re.IGNORECASE | _re.VERBOSE) 175 self.pattern) 176 return self.pattern.sub(convert, self.template) 206 self.pattern) 207 return self.pattern.sub(convert, self.template)
|
D | sre_compile.py | 64 def _compile(code, pattern, flags): argument 78 for op, av in pattern: 433 def _compile_info(code, pattern, flags): argument 437 lo, hi = pattern.getwidth() 448 for op, av in pattern.data: 462 if not prefix and pattern.data: 463 op, av = pattern.data[0] 508 if len(prefix) == prefix_skip == len(pattern.data): 554 flags = p.pattern.flags | flags 571 pattern = p [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
D | filelist.py | 125 for pattern in patterns: 126 if not self.include_pattern(pattern, anchor=1): 128 pattern) 132 for pattern in patterns: 133 if not self.exclude_pattern(pattern, anchor=1): 135 "found matching '%s'"), pattern) 139 for pattern in patterns: 140 if not self.include_pattern(pattern, anchor=0): 142 "anywhere in distribution"), pattern) 146 for pattern in patterns: [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/ |
D | _sre.c | 530 LOCAL(Py_ssize_t) SRE_MATCH(SRE_STATE* state, SRE_CODE* pattern); 533 SRE_COUNT(SRE_STATE* state, SRE_CODE* pattern, Py_ssize_t maxcount) in SRE_COUNT() argument 544 switch (pattern[0]) { in SRE_COUNT() 548 TRACE(("|%p|%p|COUNT IN\n", pattern, ptr)); in SRE_COUNT() 549 while (ptr < end && SRE_CHARSET(pattern + 2, *ptr)) in SRE_COUNT() 555 TRACE(("|%p|%p|COUNT ANY\n", pattern, ptr)); in SRE_COUNT() 563 TRACE(("|%p|%p|COUNT ANY_ALL\n", pattern, ptr)); in SRE_COUNT() 569 chr = pattern[1]; in SRE_COUNT() 570 TRACE(("|%p|%p|COUNT LITERAL %d\n", pattern, ptr, chr)); in SRE_COUNT() 577 chr = pattern[1]; in SRE_COUNT() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | _sre.c | 529 LOCAL(Py_ssize_t) SRE_MATCH(SRE_STATE* state, SRE_CODE* pattern); 532 SRE_COUNT(SRE_STATE* state, SRE_CODE* pattern, Py_ssize_t maxcount) in SRE_COUNT() argument 543 switch (pattern[0]) { in SRE_COUNT() 547 TRACE(("|%p|%p|COUNT IN\n", pattern, ptr)); in SRE_COUNT() 548 while (ptr < end && SRE_CHARSET(pattern + 2, *ptr)) in SRE_COUNT() 554 TRACE(("|%p|%p|COUNT ANY\n", pattern, ptr)); in SRE_COUNT() 562 TRACE(("|%p|%p|COUNT ANY_ALL\n", pattern, ptr)); in SRE_COUNT() 568 chr = pattern[1]; in SRE_COUNT() 569 TRACE(("|%p|%p|COUNT LITERAL %d\n", pattern, ptr, chr)); in SRE_COUNT() 576 chr = pattern[1]; in SRE_COUNT() [all …]
|
D | sre.h | 30 PyObject* pattern; /* pattern source (or None) */ member 44 PatternObject* pattern; /* link to the regex (pattern) object */ member 58 SRE_CODE* pattern; /* points to REPEAT operator arguments */ member 90 PyObject* pattern; member
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/ |
D | _sre.c | 529 LOCAL(Py_ssize_t) SRE_MATCH(SRE_STATE* state, SRE_CODE* pattern); 532 SRE_COUNT(SRE_STATE* state, SRE_CODE* pattern, Py_ssize_t maxcount) in SRE_COUNT() argument 543 switch (pattern[0]) { in SRE_COUNT() 547 TRACE(("|%p|%p|COUNT IN\n", pattern, ptr)); in SRE_COUNT() 548 while (ptr < end && SRE_CHARSET(pattern + 2, *ptr)) in SRE_COUNT() 554 TRACE(("|%p|%p|COUNT ANY\n", pattern, ptr)); in SRE_COUNT() 562 TRACE(("|%p|%p|COUNT ANY_ALL\n", pattern, ptr)); in SRE_COUNT() 568 chr = pattern[1]; in SRE_COUNT() 569 TRACE(("|%p|%p|COUNT LITERAL %d\n", pattern, ptr, chr)); in SRE_COUNT() 576 chr = pattern[1]; in SRE_COUNT() [all …]
|
/device/linaro/bootloader/edk2/StdLib/PosixLib/Glob/ |
D | glob.c | 182 const char *pattern, in glob() argument 194 _DIAGASSERT(pattern != NULL); in glob() 196 patnext = (const u_char *) pattern; in glob() 239 globexp1(const Char *pattern, glob_t *pglob, size_t *limit) in globexp1() argument 241 const Char* ptr = pattern; in globexp1() 244 _DIAGASSERT(pattern != NULL); in globexp1() 248 if (pattern[0] == LBRACE && pattern[1] == RBRACE && pattern[2] == EOS) in globexp1() 249 return glob0(pattern, pglob, limit); in globexp1() 252 if (!globexp2(ptr, pattern, pglob, &rv, limit)) in globexp1() 255 return glob0(pattern, pglob, limit); in globexp1() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/ |
D | btm_matcher.py | 49 def add(self, pattern, start): argument 52 if not pattern: 55 if isinstance(pattern[0], tuple): 59 for alternative in pattern[0]: 64 match_nodes.extend(self.add(pattern[1:], end)) 69 if pattern[0] not in start.transition_table: 72 start.transition_table[pattern[0]] = next_node 75 next_node = start.transition_table[pattern[0]] 77 if pattern[1:]: 78 end_nodes = self.add(pattern[1:], start=next_node)
|
D | patcomp.py | 94 pattern = self.compile_basic(node.children[1:]) 95 p = pytree.NegatedPattern(pattern) 111 pattern = self.compile_basic(nodes, repeat) 132 pattern = pattern.optimize() 133 pattern = pytree.WildcardPattern([[pattern]], min=min, max=max) 136 pattern.name = name 137 return pattern.optimize() 204 def compile_pattern(pattern): argument 205 return PatternCompiler().compile_pattern(pattern)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/parser/ |
D | example.py | 116 def match(pattern, data, vars=None): argument 141 if type(pattern) is ListType: # 'variables' are ['varname'] 142 vars[pattern[0]] = data 144 if type(pattern) is not TupleType: 145 return (pattern == data), vars 146 if len(data) != len(pattern): 148 for pattern, data in map(None, pattern, data): 149 same, vars = match(pattern, data, vars)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_fnmatch.py | 15 def check_match(self, filename, pattern, should_match=1, fn=fnmatch): argument 17 self.assertTrue(fn(filename, pattern), 19 % (filename, pattern)) 21 self.assertTrue(not fn(filename, pattern), 23 % (filename, pattern))
|
D | test_bufio.py | 42 def drive_one(self, pattern): argument 49 q, r = divmod(length, len(pattern)) 50 teststring = pattern * q + pattern[:r]
|
D | test_re.py | 112 pattern = re.compile('.') 113 self.assertRaises(ValueError, re.match, pattern, 'A', re.I) 114 self.assertRaises(ValueError, re.search, pattern, 'A', re.I) 115 self.assertRaises(ValueError, re.findall, pattern, 'A', re.I) 116 self.assertRaises(ValueError, re.compile, pattern, re.I) 434 def assertMatch(self, pattern, text, match=None, span=None, argument 443 m = matcher(pattern, text) 591 self.assertNotEqual(scanner.scanner.scanner("").pattern, None) 660 pattern = eval('u"[\u002E\u3002\uFF0E\uFF61]"') 661 self.assertEqual(re.compile(pattern).split("a.b.c"), [all …]
|
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/ |
D | reggnu.c | 84 re_compile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_compile_pattern() argument 89 r = onig_compile(reg, (UChar* )pattern, (UChar* )(pattern + size), &einfo); in re_compile_pattern() 100 re_recompile_pattern(const char* pattern, int size, regex_t* reg, char* ebuf) in re_recompile_pattern() argument 111 r = onig_recompile(reg, (UChar* )pattern, (UChar* )(pattern + size), in re_recompile_pattern()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | sre.h | 40 PyObject* pattern; /* pattern source (or None) */ member 54 PatternObject* pattern; /* link to the regex (pattern) object */ member 68 SRE_CODE* pattern; /* points to REPEAT operator arguments */ member 100 PyObject* pattern; member
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Include/ |
D | libfdt_env.h | 75 char pattern[2]; in strchr() local 76 pattern[0] = c; in strchr() 77 pattern[1] = 0; in strchr() 78 return AsciiStrStr (s, pattern); in strchr()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
D | loader.py | 143 def discover(self, start_dir, pattern='test*.py', top_level_dir=None): argument 204 tests = list(self._find_tests(start_dir, pattern)) 233 def _match_path(self, path, full_path, pattern): argument 235 return fnmatch(path, pattern) 237 def _find_tests(self, start_dir, pattern): argument 247 if not self._match_path(path, full_path, pattern): 273 if fnmatch(path, pattern): 285 for test in self._find_tests(full_path, pattern): 289 yield load_tests(self, tests, pattern)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/data/ |
D | README | 4 - infinite_recursion.py -- test file that causes lib2to3's faster recursive pattern matching 5 scheme to fail, but passes when lib2to3 falls back to iterative pattern matching.
|