/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_re.py | 2 import re 3 from re import Scanner 21 x = re.compile('ab+c') 26 self.assertEqual(re.search('x*', 'axx').span(0), (0, 0)) 27 self.assertEqual(re.search('x*', 'axx').span(), (0, 0)) 28 self.assertEqual(re.search('x+', 'axx').span(0), (1, 3)) 29 self.assertEqual(re.search('x+', 'axx').span(), (1, 3)) 30 self.assertEqual(re.search('x', 'aaa'), None) 31 self.assertEqual(re.match('a*', 'xxx').span(0), (0, 0)) 32 self.assertEqual(re.match('a*', 'xxx').span(), (0, 0)) [all …]
|
D | test_gdb.py | 7 import re 22 gdb_version_number = re.search(r"^GNU gdb [^\d]*(\d+)\.", gdb_version) 41 m = re.match(r'.*\[(.*)\].*', stdout) 153 m = re.match('.*#0\s+PyObject_Print\s+\(\s*op\=\s*(.*?),\s+fp=.*\).*', 154 gdb_output, re.DOTALL) 165 m = re.match(pattern, actual, re.DOTALL) 301 m = re.match(r'<Foo\(an_int=42\) at remote 0x[0-9a-f]+>', gdb_repr) 313 m = re.match(r'<Foo\(an_int=42\) at remote 0x[0-9a-f]+>', gdb_repr) 326 m = re.match(r'<Foo\(an_int=42\) at remote 0x[0-9a-f]+>', gdb_repr) 340 m = re.match(r'<Foo\(an_int=42\) at remote 0x[0-9a-f]+>', gdb_repr) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/ |
D | Complex.py | 88 return obj.re 98 def __init__(self, re=0, im=0): argument 101 if IsComplex(re): 102 _re = re.re 103 _im = re.im 105 _re = re 108 _im = _im + im.re 121 return hash(self.re) 122 return hash((self.re, self.im)) 126 return 'Complex(%r)' % (self.re,) [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Library/ |
D | ParserValidate.py | 20 import re 130 ReIsValieFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL) 161 ReIsValieArch = re.compile(r"^[a-zA-Z]+[a-zA-Z0-9]{0,}$", re.DOTALL) 181 ReIsValidFamily = re.compile(r"^[A-Z]+[A-Za-z0-9]{0,}$", re.DOTALL) 199 ReIsValidBuildOption1 = re.compile(r"^\s*(\*)|([A-Z][a-zA-Z0-9]*)$") 200 ReIsValidBuildOption2 = re.compile(r"^\s*(\*)|([a-zA-Z][a-zA-Z0-9]*)$") 224 Match = re.compile(ReString).match(Token) 423 re.compile(r"^[0-9A-Za-z][0-9A-Za-z\-_]*$", re.DOTALL) 442 ReIsValidDecVersion = re.compile(r"[0-9]+\.?[0-9]+$") 444 ReIsValidDecVersion = re.compile(r"[0-9]+$") [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Trim/ |
D | Trim.py | 19 import re 35 gLineControlDirective = re.compile('^\s*#(?:line)?\s+([0-9]+)\s+"*([^"]*)"') 37 gTypedefPattern = re.compile("^\s*typedef\s+struct(\s+\w+)?\s*[{]*$", re.MULTILINE) 39 gPragmaPattern = re.compile("^\s*#pragma\s+pack", re.MULTILINE) 41 gTypedef_SinglePattern = re.compile("^\s*typedef", re.MULTILINE) 43 gTypedef_MulPattern = re.compile("^\s*(typedef)?\s+(struct|union)(\s+\w+)?\s*[{]*$", re.MULTILINE) 51 gHexNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])(0[xX])([0-9a-fA-F]+)(U(?=$|[^a-zA-Z0-9_]))?") 53 gDecNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])([0-9]+)U(?=$|[^a-zA-Z0-9_])") 55 gLongNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])(0[xX][0-9a-fA-F]+|[0-9]+)U?LL(?=$|[^a-zA-Z0-9_]… 58 gAslIncludePattern = re.compile("^(\s*)[iI]nclude\s*\(\"?([^\"\(\)]+)\"\)", re.MULTILINE) [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Scripts/ |
D | ConvertMasmToNasm.py | 23 import re 265 endOfLineRe = re.compile(r''' 268 re.VERBOSE | re.MULTILINE 270 begOfLineRe = re.compile(r''' 273 re.VERBOSE 300 procDeclRe = re.compile(r''' 311 re.VERBOSE | re.IGNORECASE 314 procEndRe = re.compile(r''' 319 re.VERBOSE | re.IGNORECASE 323 publicRe = re.compile(r''' [all …]
|
D | PatchCheck.py | 24 import re 92 return re.compile(re_str, re.MULTILINE|re.IGNORECASE) 98 re.compile(r'''^ 105 re.VERBOSE | re.MULTILINE) 129 email_re1 = re.compile(r'(?:\s*)(.*?)(\s*)<(.+)>\s*$', 130 re.MULTILINE|re.IGNORECASE) 344 re.compile(r''' 349 re.VERBOSE) 374 split_diff_re = re.compile(r''' 382 re.IGNORECASE | re.VERBOSE | re.MULTILINE) [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Common/ |
D | GlobalData.py | 13 import re 44 gMacroRefPattern = re.compile("\$\(([A-Z][_A-Z0-9]*)\)", re.UNICODE) 45 gMacroDefPattern = re.compile("^(DEFINE|EDK_GLOBAL)[ \t]+") 46 gMacroNamePattern = re.compile("^[A-Z][A-Z0-9_]*$") 48 gWideStringPattern = re.compile('(\W|\A)L"')
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/ |
D | mailerdaemon.py | 5 import re 68 x = re.compile(x, re.MULTILINE) 72 xl.append(re.compile(x, re.MULTILINE)) 86 re.compile(r'^<<< 5\d{2} (?P<reason>.*)', re.MULTILINE), 87 re.compile('===== stderr was =====\nrmail: (?P<reason>.*)'), 88 re.compile('^Diagnostic-Code: (?P<reason>.*)', re.MULTILINE), 90 emparse_list_from = re.compile('^From:', re.IGNORECASE|re.MULTILINE) 134 exp = re.compile(re.escape(email).join(regexp.split('<>')), re.MULTILINE) 159 pat = re.compile('^[0-9]*$')
|
D | texcheck.py | 25 import re 87 texcmd = re.compile(r'\\[A-Za-z]+') 88 falsetexcmd = re.compile(r'\/([A-Za-z]+)') # Mismarked with forward slash 100 delimiters = re.compile(r'\\(begin|end){([_a-zA-Z]+)}|([()\[\]])') 101 braces = re.compile(r'({)|(})') 102 doubledwords = re.compile(r'(\b[A-za-z]+\b) \b\1\b') 103 spacingmarkup = re.compile(r'\\(ABC|ASCII|C|Cpp|EOF|infinity|NULL|plusminus|POSIX|UNIX)\s') 108 tablestart = re.compile(r'\\begin{(?:long)?table([iv]+)}') 109 tableline = re.compile(r'\\line([iv]+){') 110 tableend = re.compile(r'\\end{(?:long)?table([iv]+)}')
|
D | h2py.py | 24 import sys, re, getopt, os 26 p_define = re.compile('^[\t ]*#[\t ]*define[\t ]+([a-zA-Z0-9_]+)[\t ]+') 28 p_macro = re.compile( 32 p_include = re.compile('^[\t ]*#[\t ]*include[\t ]+<([a-zA-Z0-9_/\.]+)') 34 p_comment = re.compile(r'/\*([^*]+|\*+[^/])*(\*+/)?') 35 p_cpp_comment = re.compile('//.*') 39 p_char = re.compile(r"'(\\.[^\\]*|[^\\])'") 41 p_hex = re.compile(r"0x([0-9a-fA-F]+)L?") 67 ignores.append(re.compile(a))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | mimify.py | 30 import re 38 qp = re.compile('^content-transfer-encoding:\\s*quoted-printable', re.I) 39 base64_re = re.compile('^content-transfer-encoding:\\s*base64', re.I) 40 mp = re.compile('^content-type:.*multipart/.*boundary="?([^;"\n]*)', re.I|re.S) 41 chrset = re.compile('^(content-type:.*charset=")(us-ascii|iso-8859-[0-9]+)(".*)', re.I|re.S) 42 he = re.compile('^-*\n') 43 mime_code = re.compile('=([0-9a-f][0-9a-f])', re.I) 44 mime_head = re.compile('=\\?iso-8859-1\\?q\\?([^? \t\n]+)\\?=', re.I) 45 repl = re.compile('^subject:\\s+re: ', re.I) 168 line = re.sub(mime_head, '\\1', line) [all …]
|
D | textwrap.py | 10 import string, re 87 wordsep_re = re.compile( 96 wordsep_simple_re = re.compile(r'(\s+)') 100 sentence_end_re = re.compile(r'[%s]' # lowercase letter 130 self.wordsep_re_uni = re.compile(self.wordsep_re.pattern, re.U) 131 self.wordsep_simple_re_uni = re.compile( 132 self.wordsep_simple_re.pattern, re.U) 363 _whitespace_only_re = re.compile('^[ \t]+$', re.MULTILINE) 364 _leading_whitespace_re = re.compile('(^[ \t]*)(?:[^ \t\n])', re.MULTILINE) 411 text = re.sub(r'(?m)^' + margin, '', text)
|
D | sre.py | 9 from re import * 10 from re import __all__ 13 from re import _compile
|
D | HTMLParser.py | 12 import re 16 interesting_normal = re.compile('[&<]') 17 interesting_cdata = re.compile(r'<(/|\Z)') 18 incomplete = re.compile('&[a-zA-Z#]') 20 entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]') 21 charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]') 23 starttagopen = re.compile('<[a-zA-Z]') 24 piclose = re.compile('>') 25 commentclose = re.compile(r'--\s*>') 26 tagfind = re.compile('[a-zA-Z][-.a-zA-Z0-9:_]*') [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | textwrap.py | 10 import string, re 95 wordsep_re = re.compile( 104 wordsep_simple_re = re.compile(r'(\s+)') 108 sentence_end_re = re.compile(r'[%s]' # lowercase letter 138 self.wordsep_re_uni = re.compile(self.wordsep_re.pattern, re.U) 139 self.wordsep_simple_re_uni = re.compile( 140 self.wordsep_simple_re.pattern, re.U) 371 _whitespace_only_re = re.compile('^[ \t]+$', re.MULTILINE) 372 _leading_whitespace_re = re.compile('(^[ \t]*)(?:[^ \t\n])', re.MULTILINE) 419 text = re.sub(r'(?m)^' + margin, '', text)
|
D | sre.py | 9 from re import * 10 from re import __all__ 13 from re import _compile
|
D | HTMLParser.py | 12 import re 16 interesting_normal = re.compile('[&<]') 17 incomplete = re.compile('&[a-zA-Z#]') 19 entityref = re.compile('&([a-zA-Z][-.a-zA-Z0-9]*)[^a-zA-Z0-9]') 20 charref = re.compile('&#(?:[0-9]+|[xX][0-9a-fA-F]+)[^0-9a-fA-F]') 22 starttagopen = re.compile('<[a-zA-Z]') 23 piclose = re.compile('>') 24 commentclose = re.compile(r'--\s*>') 29 tagfind = re.compile('([a-zA-Z][^\t\n\r\f />\x00]*)(?:\s|/(?!>))*') 31 tagfind_tolerant = re.compile('[a-zA-Z][^\t\n\r\f />\x00]*') [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/GenPatchPcdTable/ |
D | GenPatchPcdTable.py | 22 import re 39 secRe = re.compile('^([\da-fA-F]+):([\da-fA-F]+) +([\da-fA-F]+)[Hh]? +([.\w\$]+) +(\w+)', re.UNICOD… 40 symRe = re.compile('^([\da-fA-F]+):([\da-fA-F]+) +([\.\-:\\\\\w\?@\$<>]+) +([\da-fA-F]+)', re.UNICO… 84 m = re.match('^([\w_\.]+) +([\da-fA-Fx]+) +([\da-fA-Fx]+)$', line) 88 m = re.match('^.data._gPcd_BinaryPatch_([\w_\d]+)$', line) 92 m = re.match('^([\da-fA-Fx]+) +([\da-fA-Fx]+)', lines[index + 1].strip()) 127 if re.match("^Start[' ']+Length[' ']+Name[' ']+Class", line): 130 if re.match("^Address[' ']+Publics by Value[' ']+Rva\+Base", line): 133 if re.match("^entry point at", line): 148 m2 = re.match('^[_]+gPcd_BinaryPatch_([\w]+)', sym_name)
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
D | conv.py | 30 import re 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) [all …]
|
/device/linaro/bootloader/edk2/BaseTools/Source/Python/UPT/Parser/ |
D | InfParserMisc.py | 22 import re 118 gQuotedMacro = re.compile(".*\".*\$\(%s\).*\".*"%(Macro)) 139 ReIsSourcesSection = re.compile("^\s*\[Sources.*\]\s.*$", re.IGNORECASE) 140 ReIsBinarySection = re.compile("^\s*\[Binaries.*\]\s.*$", re.IGNORECASE) 164 ReIsLibInstance = re.compile("^\s*##\s*@LIB_INSTANCES\s*$") 180 ReIsAsBuildInstance = re.compile("^\s*##\s*@AsBuilt\s*$")
|
/device/linaro/bootloader/edk2/ArmPlatformPkg/Scripts/Ds5/ |
D | build_report.py | 13 import re 22 pcd_reg = re.compile(" (\*P|\*F|\*M| ) (\w+)(\ +)\: (.*) \((\w+)\) = (.*)\n") 26 if re.match("\<=+\>", stripped_line): 28 elif re.match("g.*Guid", stripped_line):
|
/device/linaro/bootloader/edk2/IntelFspPkg/Tools/ |
D | GenCfgOpt.py | 15 import re 106 …Match = re.match("^([_a-zA-Z0-9]+).(MemoryInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-9a-… 109 …Match = re.match("^\s*([_a-zA-Z0-9]+).(SiliconInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0… 112 …Match = re.match("^([_a-zA-Z0-9]+).([_a-zA-Z0-9]+)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-9a-fA-F]+… 115 …Match = re.match("^([_a-zA-Z0-9]+).([_a-zA-Z0-9]+)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-9a-fA-F]+… 124 …Match = re.match("^\s*([_a-zA-Z0-9]+).(MemoryInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0-… 126 DscLine = re.sub(r'(?:[^\s]+\s*$)', MemUpdInitOffsetStr + '\n', DscLine) 127 …Match = re.match("^\s*([_a-zA-Z0-9]+).(SiliconInitUpdOffset)\s*\|\s*(0x[0-9A-F]+)\s*\|\s*(\d+|0x[0… 129 DscLine = re.sub(r'(?:[^\s]+\s*$)', SiUpdInitOffsetStr + '\n', line) 182 if re.match('^0x[a-fA-F0-9]+$', var): [all …]
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | HTTPRequestResponse.cpp | 55 std::regex re("([a-zA-Z0-9-]+): (.*)"); in setTo() local 58 if (!std::regex_match(line, match, re)) { in setTo() 127 std::regex re("(GET|HEAD) ([a-zA-Z_/.0-9?&=]+) (HTTP/1\\.1)"); in parseRequestResponseLine() local 130 if (!std::regex_match(line, match, re)) { in parseRequestResponseLine() 156 std::regex re( in parseRequestResponseLine() local 161 if (!std::regex_match(line, match, re)) { in parseRequestResponseLine()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/ |
D | scanner.py | 3 import re 11 NUMBER_RE = re.compile( 13 (re.VERBOSE | re.MULTILINE | re.DOTALL))
|