/external/clang/utils/ |
H A D | FindSpecRefs | 4 import re namespace 630 doxyLineRefRE = re.compile(r"<a name=\"l([0-9]+)\"></a>") 650 nameAndSpecRefRE = re.compile(r"(C99|C90|C\+\+|H\&S) ((([0-9]+)(\.[0-9]+)*|\[[^]]+\])(p[0-9]+)?)") 651 loneSpecRefRE = re.compile(r" (([0-9]+)(\.[0-9]+){2,100}(p[0-9]+)?)")
|
/external/gtest/test/ |
H A D | gtest_output_test.py | 44 import re namespace 101 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output) 108 return re.sub(r'Stack trace:(.|\n)*?\n\n', 116 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output) 122 return re.sub(r'\(\d+ ms', '(? ms', output) 136 return re.sub(r'unsigned int', 'unsigned', test_output) 144 test_output = re.sub('\x1b\\[(0;3\d)?m', '', test_output) 146 test_output = re.sub(r': Failure\n', r': error: ', test_output) 148 test_output = re.sub(r'((\w|\.)+)\((\d+)\):', r'\1:\3:', test_output) 156 output = re [all...] |
/external/llvm/test/Scripts/ |
H A D | coff-dump.py | 233 import sys, types, struct, re namespace 321 idlit = re.compile("[a-zA-Z_][a-zA-Z0-9_-]*") 322 numlit = re.compile("[0-9]+")
|
/external/llvm/utils/lit/lit/ |
H A D | ProgressBar.py | 6 import sys, re, time namespace 139 return re.sub(r'\$<\d+>[/*]?', '', cap) 147 return re.sub(r'\$\$|\${\w+}', self._render_sub, template)
|
/external/markdown/markdown/ |
H A D | blockprocessors.py | 15 import re namespace 116 INDENT_RE = re.compile(r'^(([ ]{%s})+)'% markdown.TAB_LENGTH) 167 # We're in a tightlist - so we already are at correct parent. 170 # We're in a looselist - so we need to find parent. 180 # No more child levels. If we're short of indent_level, 219 RE = re.compile(r'(^|\n)[ ]{0,3}>[ ]?(.*)') 259 RE = re.compile(r'^[ ]{0,3}\d+\.[ ]+(.*)') 261 CHILD_RE = re.compile(r'^[ ]{0,3}((\d+\.)|[*+-])[ ]+(.*)') 263 INDENT_RE = re.compile(r'^[ ]{4,7}((\d+\.)|[*+-])[ ]+.*') 327 RE = re [all...] |
/external/protobuf/gtest/test/ |
H A D | gtest_output_test.py | 44 import re namespace 102 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output) 109 return re.sub(r'Stack trace:(.|\n)*?\n\n', 117 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output) 123 return re.sub(r'\(\d+ ms', '(? ms', output) 129 output = re.sub(r'\d+ tests, listed below', 131 output = re.sub(r'\d+ FAILED TESTS', 133 output = re.sub(r'\d+ tests from \d+ test cases', 135 output = re.sub(r'\d+ tests from ([a-zA-Z_])', 137 return re [all...] |
/external/protobuf/python/ |
H A D | ez_setup.py | 210 return main(list(argv)+[egg]) # we're done here 244 import re namespace 260 match = re.search("\nmd5_data = {\n([^}]+)}", src)
|
/external/regex-re2/re2/ |
H A D | simplify.cc | 5 // Rewrite POSIX and other features in re 21 Regexp* re = Parse(src, flags, status); local 22 if (re == NULL) 24 Regexp* sre = re->Simplify(); 25 re->Decref(); 106 virtual Regexp* PreVisit(Regexp* re, Regexp* parent_arg, bool* stop); 107 virtual Regexp* PostVisit(Regexp* re, 111 virtual Regexp* Copy(Regexp* re); 112 virtual Regexp* ShortVisit(Regexp* re, Regexp* parent_arg); 122 // Simplifies the expression re{mi 154 Copy(Regexp* re) argument 158 ShortVisit(Regexp* re, Regexp* parent_arg) argument 165 PreVisit(Regexp* re, Regexp* parent_arg, bool* stop) argument 173 PostVisit(Regexp* re, Regexp* parent_arg, Regexp* pre_arg, Regexp** child_args, int nchild_args) argument 299 Regexp* re = new Regexp(kRegexpConcat, parse_flags); local 313 SimplifyRepeat(Regexp* re, int min, int max, Regexp::ParseFlags f) argument 381 SimplifyCharClass(Regexp* re) argument [all...] |
H A D | tostring.cc | 35 virtual int PreVisit(Regexp* re, int parent_arg, bool* stop); 36 virtual int PostVisit(Regexp* re, int parent_arg, int pre_arg, 38 virtual int ShortVisit(Regexp* re, int parent_arg) { argument 59 // Visits re before children are processed. 61 int ToStringWalker::PreVisit(Regexp* re, int parent_arg, bool* stop) { argument 65 switch (re->op()) { 97 if (re->name()) { 99 t_->append(*re->name()); 136 // Visits re after children are processed. 139 int ToStringWalker::PostVisit(Regexp* re, in argument [all...] |
H A D | walker-inl.h | 27 // Virtual method called before visiting re's children. 36 virtual T PreVisit(Regexp* re, T parent_arg, bool* stop); 38 // Virtual method called after visiting re's children. 47 virtual T PostVisit(Regexp* re, T parent_arg, T pre_arg, 51 // when Walk notices that more than one child is the same re. 54 // Virtual method called to do a "quick visit" of the re, 56 // has been used up and we're trying to abort the walk 62 virtual T ShortVisit(Regexp* re, T parent_arg) = 0; 65 // Top_arg is passed as parent_arg to PreVisit and PostVisit of re. 66 // Returns the T returned by PostVisit on re 98 PreVisit(Regexp* re, T parent_arg, bool* stop) argument 104 PostVisit(Regexp* re, T parent_arg, T pre_arg, T* child_args, int nchild_args) argument 118 WalkState(Regexp* re, T parent) argument 124 Regexp* re; // The regexp member in struct:re2::WalkState 155 WalkInternal(Regexp* re, T top_arg, bool use_copy) argument 170 Regexp* re = s->re; local 227 Walk(Regexp* re, T top_arg) argument 236 WalkExponential(Regexp* re, T top_arg, int max_visits) argument [all...] |
/external/skia/bench/ |
H A D | bench_graph_svg.py | 8 import re namespace 75 file_name_match = re.match('bench_r(\d+)_(\S+)', bench_file) 92 file_name_match = re.match('bench_r(\d+)_(\S+)', bench_file)
|
/external/v8/test/mjsunit/ |
H A D | testcfg.py | 31 import re namespace 34 FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)") 35 FILES_PATTERN = re.compile(r"//\s+Files:(.*)") 36 SELF_SCRIPT_PATTERN = re.compile(r"//\s+Env: TEST_FILE_NAME")
|
/external/v8/test/preparser/ |
H A D | testcfg.py | 33 import re namespace 85 rule_regex = re.compile("^([\w\-]+)(?::([\w\-]+))?(?::(\d+),(\d+))?$")
|
/external/v8/tools/ |
H A D | js2c.py | 34 import os, re, sys, string namespace 56 lines = re.sub(r'//.*\n', '\n', lines) # end-of-line comments 57 lines = re.sub(re.compile(r'/\*.*?\*/', re.DOTALL), '', lines) # comments. 58 lines = re.sub(r'\s+\n+', '\n', lines) # trailing whitespace 97 EVAL_PATTERN = re.compile(r'\beval\s*\(') 98 WITH_PATTERN = re.compile(r'\bwith\s*\(') 176 CONST_PATTERN = re.compile(r'^const\s+([a-zA-Z0-9_]+)\s*=\s*([^;]*);$') 177 MACRO_PATTERN = re [all...] |
/external/webkit/Source/WebCore/platform/text/ |
H A D | RegularExpression.cpp | 79 RegularExpression::RegularExpression(const RegularExpression& re) argument 80 : d(re.d) 88 RegularExpression& RegularExpression::operator=(const RegularExpression& re) argument 90 d = re.d;
|
/external/webkit/Source/WebKit2/Scripts/webkit2/ |
H A D | messages.py | 25 import re namespace 71 match = re.search(r'messages -> ([A-Za-z_0-9]+) {', line) 84 match = re.search(r'([A-Za-z_0-9]+)\((.*?)\)(?:(?:\s+->\s+)\((.*?)\)(?:\s+(.*))?)?', line) 411 match = re.search(r'Vector<(.+)>', type) 436 match = re.search(r'Vector<(.+)>', type)
|
/external/webkit/Tools/Scripts/ |
H A D | check-inspector-strings | 33 import re namespace 69 line_strings = re.findall(pattern, line) 84 match = re.match(r"localizedStrings\[\"((?:[^\"\\]|\\.)*?)\"", line)
|
H A D | validate-committer-lists | 36 import re namespace 163 line_regexp = re.compile("^(?P<author>.+)@\S+ (?P<timestamp>\d+)$")
|
/external/webkit/Tools/Scripts/webkitpy/common/checkout/ |
H A D | changelog.py | 34 import re namespace 55 match = re.match(self.date_line_regexp, self._contents, re.MULTILINE) 63 match = re.search("^\s+Reviewed by (?P<reviewer>.*?)[\.,]?\s*$", self._contents, re.MULTILINE) # Discard everything after the first period 106 date_line_regexp = re.compile(ChangeLogEntry.date_line_regexp) 107 rolled_over_regexp = re.compile(ChangeLogEntry.rolled_over_regexp) 151 reviewed_by_regexp = re.compile( 154 # inplace=1 creates a backup file and re-directs stdout to the file 170 # inplace=1 creates a backup file and re [all...] |
/external/webkit/Tools/wx/build/ |
H A D | settings.py | 29 import re namespace
|
/external/antlr/antlr-3.4/runtime/Python/ |
H A D | xmlrunner.py | 11 import re namespace 236 got = re.sub(r'time="\d+\.\d+"', 'time="0.000"', got) 239 got = re.sub(r'(?s)<failure (.*?)>.*?</failure>', r'<failure \1>Foobar</failure>', got) 240 got = re.sub(r'(?s)<error (.*?)>.*?</error>', r'<error \1>Foobar</error>', got)
|
/external/chromium/chrome/common/extensions/docs/build/ |
H A D | directory.py | 11 import re namespace 350 placeholder_pattern = re.compile('\$(\w*)\$')
|
/external/chromium/net/tools/testserver/ |
H A D | xmppserver.py | 15 import re namespace 108 _stream_re = re.compile(r'^(<stream:stream [^>]*>)\s*') 111 _empty_element_re = re.compile(r'^(<[^>]*/>)\s*') 115 _non_empty_element_re = re.compile(r'^(<([^ >]*)[^>]*>.*?</\2>)\s*')
|
/external/chromium/sdch/open-vcdiff/src/gtest/ |
H A D | gtest-port.cc | 57 // Returns true iff str contains regular expression re. 58 bool RE::PartialMatch(const char* str, const RE& re) { argument 59 if (!re.is_valid_) return false; 62 return regexec(&re.regex_, str, 1, &match, 0) == 0;
|
/external/chromium/testing/gmock/scripts/ |
H A D | upload.py | 41 import re namespace 224 # This is a dummy value to allow us to identify when we're successful. 727 match = re.match(r"(\d+)(:(\d+))?", self.options.revision) 834 return re.sub(r"\$(%s):(:?)([^\$]+)\$" % '|'.join(keywords), repl, content) 908 # We'll need to upload the new content if we're adding a binary file 1004 match = re.match(r"diff --git a/(.*) b/.*$", line) 1013 match = re.match(r"index (\w+)\.\.", line) 1072 m = re.match("diff --git a/(\S+) b/(\S+)", line) 1213 we're using, and returns an instance of the appropriate class. Exit with an 1235 # Git has a command to test if you're i [all...] |