Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 386) sorted by relevance

12345678910>>...16

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_re.py31 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/
Dsgmllib.py125 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 …]
DHTMLParser.py137 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 …]
Dre.py134 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
/device/linaro/bootloader/edk2/BaseTools/Scripts/
DMemoryProfileSymbolGen.py79 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/google/cuttlefish/host/frontend/gcastv2/https/
DHTTPRequestResponse.cpp56 std::smatch match; in setTo() local
58 if (!std::regex_match(line, match, re)) { in setTo()
62 auto key = match[1]; in setTo()
63 auto value = match[2]; in setTo()
128 std::smatch match; in parseRequestResponseLine() local
130 if (!std::regex_match(line, match, re)) { in parseRequestResponseLine()
134 mMethod = match[1]; in parseRequestResponseLine()
135 mPath = match[2]; in parseRequestResponseLine()
136 mVersion = match[3]; in parseRequestResponseLine()
159 std::smatch match; in parseRequestResponseLine() local
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DHTMLParser.py148 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 …]
Dre.py138 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/coral/
Dutils.mk16 define match-word
48 define match-word-in-list
51 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \
66 define match-prefix
70 $(if $(call match-word-in-list,$(1),$(text)),true,) \
87 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM))
93 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true)
99 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1))
106 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\
118 $(call match-prefix,$(1),$(__underscore),$(TARGET_BOARD_PLATFORM))
[all …]
/device/google/sunfish/
Dutils.mk16 define match-word
48 define match-word-in-list
51 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \
66 define match-prefix
70 $(if $(call match-word-in-list,$(1),$(text)),true,) \
87 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM))
93 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true)
99 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1))
106 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\
118 $(call match-prefix,$(1),$(__underscore),$(TARGET_BOARD_PLATFORM))
[all …]
/device/google/bonito/
Dutils.mk14 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/
Dutils.mk14 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/redbull/
Dutils.mk16 define match-word
48 define match-word-in-list
51 $(call match-word,$(call find-word-in-list,$(1),$(2)),$(strip $(1))), \
66 define match-prefix
70 $(if $(call match-word-in-list,$(1),$(text)),true,) \
87 $(call match-word,$(1),$(TARGET_BOARD_PLATFORM))
93 $(if $(call match-word,$(1),$(TARGET_BOARD_PLATFORM)),,true)
99 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),$(1))
106 $(call match-word-in-list,$(TARGET_BOARD_PLATFORM),\
118 $(call match-prefix,$(1),$(__underscore),$(TARGET_BOARD_PLATFORM))
[all …]
/device/linaro/bootloader/edk2/IntelFsp2Pkg/Tools/
DPatchFv.py143 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/
Dscantools.py501 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/
Dversionpredicate.py21 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/
DPatchFv.py277 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)
334match = 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/
Dh2py.py119 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/Eot/
DCLexer.py188 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/Ecc/
DCLexer.py188 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/
DParserValidate.py131 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/Demo/comparisons/
Dsortingtest.py32 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/fixes/
Dfix_renames.py49 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")):
Dfix_imports.py106 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/EmbeddedPkg/Library/ZLib/
Dinftrees.c57 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];

12345678910>>...16