/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_re.py | 31 self.assertEqual(re.match('a*', 'xxx').span(0), (0, 0)) 32 self.assertEqual(re.match('a*', 'xxx').span(), (0, 0)) 33 self.assertEqual(re.match('x*', 'xxxa').span(0), (0, 3)) 34 self.assertEqual(re.match('x*', 'xxxa').span(), (0, 3)) 35 self.assertEqual(re.match('a+', 'xxx'), None) 113 self.assertRaises(ValueError, re.match, pattern, 'A', re.I) 232 self.assertEqual(re.match('a', 'a').groups(), ()) 233 self.assertEqual(re.match('(a)', 'a').groups(), ('a',)) 234 self.assertEqual(re.match(r'(a)', 'a').group(0), 'a') 235 self.assertEqual(re.match(r'(a)', 'a').group(1), 'a') [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | sgmllib.py | 125 match = interesting.search(rawdata, i) 126 if match: j = match.start() 133 if starttagopen.match(rawdata, i): 183 match = charref.match(rawdata, i) 184 if match: 185 name = match.group(1) 187 i = match.end(0) 190 match = entityref.match(rawdata, i) 191 if match: 192 name = match.group(1) [all …]
|
D | HTMLParser.py | 137 match = self.interesting.search(rawdata, i) # < or & 138 if match: 139 j = match.start() 147 if starttagopen.match(rawdata, i): # < + letter 168 match = charref.match(rawdata, i) 169 if match: 170 name = match.group()[2:-1] 172 k = match.end() 183 match = entityref.match(rawdata, i) 184 if match: [all …]
|
D | re.py | 134 def match(pattern, string, flags=0): function 137 return _compile(pattern, flags).match(string) 265 def _expand(pattern, match, template): argument 268 return sre_parse.expand_template(template, match) 276 def filter(match, template=template): argument 277 return sre_parse.expand_template(template, match) 310 match = self.scanner.scanner(string).match 313 m = match() 321 self.match = m
|
D | mimify.py | 84 if he.match(line): 115 match = res.group(1) 117 match = ' '.join(match.split('_')) 118 newline = newline + line[pos:res.start(0)] + mime_decode(match) 145 if qp.match(line): 148 if decode_base64 and base64_re.match(line): 152 if not prefix and repl.match(line): 155 mp_res = mp.match(line) 158 if he.match(line): 298 if mv.match(line): [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Scripts/ |
D | MemoryProfileSymbolGen.py | 79 match = re.match(patchLineFileMatchString, reportLine) 80 if match is not None: 88 rva = int (match.group(1), 16) 89 functionName = match.group(2) 90 sourceName = match.group(3) 91 if cmp (match.group(4), "") != 0 : 92 lineName = int (match.group(4)) 138 match = re.match(patchLineFileMatchString, reportLine) 139 if match is not None: 144 if cmp (match.group(3), "") != 0 : [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | HTMLParser.py | 148 match = self.interesting.search(rawdata, i) # < or & 149 if match: 150 j = match.start() 160 if starttagopen.match(rawdata, i): # < + letter 188 match = charref.match(rawdata, i) 189 if match: 190 name = match.group()[2:-1] 192 k = match.end() 203 match = entityref.match(rawdata, i) 204 if match: [all …]
|
D | re.py | 138 def match(pattern, string, flags=0): function 141 return _compile(pattern, flags).match(string) 279 def _expand(pattern, match, template): argument 282 return sre_parse.expand_template(template, match) 290 def filter(match, template=template): argument 291 return sre_parse.expand_template(template, match) 324 match = self.scanner.scanner(string).match 327 m = match() 335 self.match = m
|
/device/google/marlin/common/ |
D | utils.mk | 14 define match-word 46 define match-word-in-list 49 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \ 64 define match-prefix 68 $(if $(call match-word-in-list,$(1),$(text)),true,) \ 85 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)) 91 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true) 97 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1)) 104 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\ 116 $(call match-prefix,$(1),$(underscore),$(TARGET_BOARD_PLATFORM)) [all …]
|
/device/google/bonito/ |
D | utils.mk | 14 define match-word 46 define match-word-in-list 49 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \ 64 define match-prefix 68 $(if $(call match-word-in-list,$(1),$(text)),true,) \ 85 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)) 91 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true) 97 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1)) 104 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\ 116 $(call match-prefix,$(1),$(underscore),$(TARGET_BOARD_PLATFORM)) [all …]
|
/device/google/crosshatch/ |
D | utils.mk | 14 define match-word 46 define match-word-in-list 49 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \ 64 define match-prefix 68 $(if $(call match-word-in-list,$(1),$(text)),true,) \ 85 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)) 91 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true) 97 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1)) 104 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\ 116 $(call match-prefix,$(1),$(underscore),$(TARGET_BOARD_PLATFORM)) [all …]
|
/device/google/wahoo/ |
D | utils.mk | 14 define match-word 46 define match-word-in-list 49 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \ 64 define match-prefix 68 $(if $(call match-word-in-list,$(1),$(text)),true,) \ 85 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)) 91 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true) 97 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1)) 104 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\ 116 $(call match-prefix,$(1),$(underscore),$(TARGET_BOARD_PLATFORM)) [all …]
|
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/ |
D | PatchFv.py | 143 match = re.match("^EFI_BASE_ADDRESS\s*=\s*(0x[a-fA-F0-9]+)", rptLine) 144 if match: 145 fvInfo['Base'] = int(match.group(1), 16) 301 match = re.match("^EFI_BASE_ADDRESS\s*=\s*(0x[a-fA-F0-9]+)", rptLine) 302 if match is not None: 303 self.fdBase = int(match.group(1), 16) - fvOffset 328 match = re.match("(0x[a-fA-F0-9]+)\s([0-9a-fA-F\-]+)", rptLine) 329 if match is not None: 330 if match.group(2) in self.dictFfsOffset: 331 …self.dictFfsOffset[fvName + ':' + match.group(2)] = "0x%08X" % (int(match.group(1), 16) + fvOffset) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/bgen/bgen/ |
D | scantools.py | 501 match = self.comment1.match(line) 502 if match: 504 match.start('rest'), match.end('rest'), 'notcomment')]) 505 line = match.group('rest') 508 match = self.comment2.match(line) 509 while match: 510 if match: 512 (match.start('rest1'), match.end('rest1'), 'notcomment'), 513 (match.start('rest2'), match.end('rest2'), 'notcomment')]) 514 line = match.group('rest1')+match.group('rest2') [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
D | versionpredicate.py | 21 res = re_splitComparison.match(pred) 105 match = re_validPackage.match(versionPredicateStr) 106 if not match: 108 self.name, paren = match.groups() 111 match = re_paren.match(paren) 112 if not match: 114 str = match.groups()[0] 158 m = _provision_rx.match(value)
|
/device/linaro/bootloader/edk2/IntelFspPkg/Tools/ |
D | PatchFv.py | 277 match = re.match("^EFI_BASE_ADDRESS\s*=\s*(0x[a-fA-F0-9]+)", rptLine) 278 if match is not None: 279 self.fdBase = int(match.group(1), 16) - fvOffset 303 match = re.match("(0x[a-fA-F0-9]+)\s([0-9a-fA-F\-]+)", rptLine) 304 if match is not None: 305 self.dictFfsOffset[match.group(2)] = "0x%08X" % (int(match.group(1), 16) + fvOffset) 334 …match = re.match("([_a-zA-Z0-9\-]+)\s\(.+BaseAddress=(0x[0-9a-fA-F]+),\s+EntryPoint=(0x[0-9a-fA-F]… 335 if match is not None: 336 modName = match.group(1) 339 self.dictModBase['%s:BASE' % modName] = int (match.group(2), 16) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
D | h2py.py | 119 match = p_define.match(line) 120 if match: 127 name = match.group(1) 128 body = line[match.end():] 138 match = p_macro.match(line) 139 if match: 140 macro, arg = match.group(1, 2) 141 body = line[match.end():] 150 match = p_include.match(line) 151 if match: [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Ecc/ |
D | CLexer.py | 188 self.match(u';') 210 self.match("typedef") 233 self.match(u',') 255 self.match(u'=') 277 self.match("extern") 300 self.match("static") 323 self.match("auto") 346 self.match("register") 369 self.match("STATIC") 392 self.match("void") [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/ |
D | CLexer.py | 188 self.match(u';') 210 self.match("typedef") 233 self.match(u',') 255 self.match(u'=') 277 self.match("extern") 300 self.match("static") 323 self.match("auto") 346 self.match("register") 369 self.match("STATIC") 392 self.match("void") [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
D | ParserValidate.py | 131 if ReIsValieFamily.match(ToolFamily) == None: 162 if ReIsValieArch.match(Arch) == None: 182 if ReIsValidFamily.match(Family) == None: 202 if ReIsValidBuildOption1.match(ToolOptionList[0]) == None: 205 if ReIsValidBuildOption1.match(ToolOptionList[1]) == None: 208 if ReIsValidBuildOption2.match(ToolOptionList[2]) == None: 224 Match = re.compile(ReString).match(Token) 428 if not ReIsValidSimpleWord.match(Word): 445 if ReIsValidDecVersion.match(Word) == None: 460 if ReIsValidHexVersion.match(Word) == None: [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/fixes/ |
D | fix_renames.py | 49 def match(self, node): member in FixRenames 50 match = super(FixRenames, self).match 51 results = match(node) 53 if any(match(obj) for obj in attr_chain(node, "parent")):
|
D | fix_imports.py | 106 def match(self, node): member in FixImports 107 match = super(FixImports, self).match 108 results = match(node) 113 any(match(obj) for obj in attr_chain(node, "parent")): 137 results = self.match(node)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/comparisons/ |
D | sortingtest.py | 32 match = prog.match(item) 33 if match: 34 var, num = match.groups()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
D | conv.py | 71 mo = re.match(r"^#define\s+(\w+)\s+(\d+)$", line) 132 mo = re.match(r"static arc arcs_(\d+)_(\d+)\[(\d+)\] = {$", 139 mo = re.match(r"\s+{(\d+), (\d+)},$", line) 147 mo = re.match(r"static state states_(\d+)\[(\d+)\] = {$", line) 154 mo = re.match(r"\s+{(\d+), arcs_(\d+)_(\d+)},$", line) 168 mo = re.match(r"static dfa dfas\[(\d+)\] = {$", line) 173 mo = re.match(r'\s+{(\d+), "(\w+)", (\d+), (\d+), states_(\d+),$', 184 mo = re.match(r'\s+("(?:\\\d\d\d)*")},$', line) 201 mo = re.match(r"static label labels\[(\d+)\] = {$", line) 206 mo = re.match(r'\s+{(\d+), (0|"\w+")},$', line) [all …]
|
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/ZLib/ |
D | inftrees.c | 57 unsigned match; /* use base and extra for symbol >= match */ local 184 match = 20; 189 match = 257; 194 match = 0; 217 if (work[sym] + 1U < match) { 221 else if (work[sym] >= match) { 222 here.op = (unsigned char)(extra[work[sym] - match]); 223 here.val = base[work[sym] - match];
|