/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/Scripts/ |
D | ConvertMasmToNasm.py | 19 import re 253 endOfLineRe = re.compile(r''' 256 re.VERBOSE | re.MULTILINE 258 begOfLineRe = re.compile(r''' 261 re.VERBOSE 288 procDeclRe = re.compile(r''' 297 re.VERBOSE | re.IGNORECASE 300 procEndRe = re.compile(r''' 305 re.VERBOSE | re.IGNORECASE 309 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) 360 split_diff_re = re.compile(r''' 368 re.IGNORECASE | re.VERBOSE | re.MULTILINE) 422 git_diff_re = re.compile(r''' 425 re.IGNORECASE | re.VERBOSE | re.MULTILINE) [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) 47 gHexNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])(0[xX])([0-9a-fA-F]+)(U(?=$|[^a-zA-Z0-9_]))?") 49 gDecNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])([0-9]+)U(?=$|[^a-zA-Z0-9_])") 51 gLongNumberPattern = re.compile("(?<=[^a-zA-Z0-9_])(0[xX][0-9a-fA-F]+|[0-9]+)U?LL(?=$|[^a-zA-Z0-9_]… 54 gAslIncludePattern = re.compile("^(\s*)[iI]nclude\s*\(\"?([^\"\(\)]+)\"\)", re.MULTILINE) 56 gAslCIncludePattern = re.compile(r'^(\s*)#include\s*[<"]\s*([-\\/\w.]+)\s*([>"])', re.MULTILINE) 60 re.compile('^(\s*)\(\*\*PeiServices\)\.PciCfg\s*=\s*([^;\s]+);', re.MULTILINE), [all …]
|
/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/BaseTools/Source/Python/Common/ |
D | GlobalData.py | 13 import re 43 gMacroRefPattern = re.compile("\$\(([A-Z][_A-Z0-9]*)\)", re.UNICODE) 44 gMacroDefPattern = re.compile("^(DEFINE|EDK_GLOBAL)[ \t]+") 45 gMacroNamePattern = re.compile("^[A-Z][A-Z0-9_]*$") 47 gWideStringPattern = re.compile('(\W|\A)L"')
|
/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 | 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 …]
|
D | sre.py | 9 from re import * 10 from re import __all__ 13 from re import _compile
|
D | sysconfig.py | 192 import re 195 _variable_rx = re.compile("([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)") 196 _findvar1_rx = re.compile(r"\$\(([A-Za-z][A-Za-z0-9_]*)\)") 197 _findvar2_rx = re.compile(r"\${([A-Za-z][A-Za-z0-9_]*)}") 329 import re 332 define_rx = re.compile("#define ([A-Z][A-Za-z0-9_]+) (.*)\n") 333 undef_rx = re.compile("/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/\n") 400 import re 461 flags = re.sub('-arch\s+\w+\s', ' ', flags) 462 flags = re.sub('-isysroot [^ \t]*', ' ', flags) [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 | 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 …]
|
D | sre.py | 9 from re import * 10 from re import __all__ 13 from re import _compile
|
/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.UNICODE) 84 m = re.match('^([\w_\.]+) +([\da-fA-Fx]+) +([\da-fA-Fx]+)$', line) 88 m = re.match("^([\da-fA-Fx]+) +[_]+gPcd_BinaryPatch_([\w_\d]+)$", line) 123 if re.match("^Start[' ']+Length[' ']+Name[' ']+Class", line): 126 if re.match("^Address[' ']+Publics by Value[' ']+Rva\+Base", line): 129 if re.match("^entry point at", line): 144 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/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/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/AppPkg/Applications/Python/Python-2.7.2/Lib/json/ |
D | scanner.py | 3 import re 11 NUMBER_RE = re.compile( 13 (re.VERBOSE | re.MULTILINE | re.DOTALL))
|