Searched defs:re (Results 1 - 8 of 8) sorted by relevance

/art/tools/checker/file_format/c1visualizer/
H A Dparser.py19 import re namespace
40 if re.match("name\s+\"[^\"]+\"", line):
57 if re.match("method\s+\"[^\"]*\"", line):
/art/tools/
H A Danalyze-init-failures.py22 import re namespace
27 _CLASS_RE = re.compile(r'^L(.*);$')
28 _ERROR_LINE_RE = re.compile(r'^dalvik.system.TransactionAbortError: (.*)')
29 _STACK_LINE_RE = re.compile(r'^\s*at\s[^\s]*\s([^\s]*)')
109 failed_clazz_norm = re.sub(r"^L", "", failed_clazz)
110 failed_clazz_norm = re.sub(r";$", "", failed_clazz_norm)
111 failed_clazz_norm = re.sub(r"/", "", failed_clazz_norm)
H A Dgenerate-operator-out.py21 import re namespace
26 _ENUM_START_RE = re.compile(r'\benum\b\s+(class\s+)?(\S+)\s+:?.*\{(\s+// private)?')
27 _ENUM_VALUE_RE = re.compile(r'([A-Za-z0-9_]+)(.*)')
28 _ENUM_END_RE = re.compile(r'^\s*\};$')
75 m = re.compile(r'^namespace (\S+) \{').search(raw_line)
79 m = re.compile(r'^\}\s+// namespace').search(raw_line)
85 m = re.compile(r'^\s*(?:class|struct)(?: MANAGED)?(?: PACKED\([0-9]\))? (\S+).* \{').search(raw_line)
91 m = re.compile(r'^\s*\}(\s+)?(while)?(.+)?;').search(raw_line)
112 m_comment = re.compile(r'// <<(.*?)>>').search(raw_line)
116 line = re
[all...]
H A Dcpplint.py83 import re namespace
327 _ALT_TOKEN_REPLACEMENT_PATTERN = re.compile(
346 _MATCH_ASM = re.compile(r'^\s*(?:asm|_asm|__asm|__asm__)'
354 _RE_SUPPRESSION = re.compile(r'\bNOLINT\b(\([^)]*\))?')
542 # This will always be the fallback because we're not sure
921 _RE_PATTERN_CLEANSE_LINE_ESCAPES = re.compile(
924 _RE_PATTERN_CLEANSE_LINE_DOUBLE_QUOTES = re.compile(r'"[^"]*"')
926 _RE_PATTERN_CLEANSE_LINE_SINGLE_QUOTES = re.compile(r"'.'")
931 # The current rule is: We only clear spaces from both sides when we're at the
935 _RE_PATTERN_CLEANSE_LINE_C_COMMENTS = re
[all...]
/art/tools/checker/file_format/checker/
H A Dparser.py20 import re namespace
41 match = re.match(regexPrefix, line)
121 matchWhitespace = re.search(r"\s+", line)
122 matchPattern = re.search(TestExpression.Regex.regexPattern, line)
123 matchVariableDefinition = re.search(TestExpression.Regex.regexVariableDefinition, line)
124 matchVariableReference = re.search(TestExpression.Regex.regexVariableReference, line)
151 # If we're not currently looking at a special marker, this is a plain
H A Dstruct.py18 import re namespace
159 return TestExpression(TestExpression.Variant.Pattern, None, re.escape(text))
167 assert re.match(TestExpression.Regex.rName, name)
172 assert re.match(TestExpression.Regex.rName, name)
/art/tools/checker/match/
H A Dline.py18 import re namespace
53 pattern = re.escape(getVariable(expression.name, variables, pos))
58 # Note: re.match will succeed only if matched from the beginning.
59 match = re.match(pattern, stringWord)
/art/runtime/interpreter/mterp/
H A Dgen_mterp.py22 import sys, string, re, time namespace
257 opcode_re = re.compile(r"^\s*V\((....), (\w+),.*", re.DOTALL)

Completed in 1020 milliseconds