/external/regex-re2/re2/testing/ |
H A D | regexp_test.cc | 16 Regexp* re; local 17 re = Regexp::Parse("x", Regexp::NoParseFlags, NULL); 19 re->Incref(); 21 re->Decref(); 22 CHECK_EQ(re->Ref(), 1); 23 re->Decref(); 35 Regexp* re = Regexp::Concat(&v[0], v.size(), Regexp::NoParseFlags); local 36 CHECK_EQ(re->ToString(), string(v.size(), 'x')); 37 re->Decref();
|
H A D | simplify_test.cc | 145 Regexp* re = Regexp::Parse(tests[i].regexp, local 149 CHECK(re != NULL) << " " << tests[i].regexp << " " << status.Text(); 150 Regexp* sre = re->Simplify(); 155 CHECK(re == sre) << " " << tests[i].regexp 156 << " " << re->ToString() << " " << sre->ToString(); 162 re->Decref();
|
/external/autotest/client/site_tests/hardware_I2CProbe/ |
H A D | hardware_I2CProbe.py | 12 import re namespace 28 return (re.search('^\d\d:\s+(UU|[0-9a-f]{2})', response, re.MULTILINE) is
|
/external/autotest/client/site_tests/kernel_HdParm/ |
H A D | kernel_HdParm.py | 7 import logging, re namespace 24 match = re.search('(\d+\.\d+) MB\/sec', result) 27 match = re.search('(\d+\.\d+) MB\/sec', result)
|
/external/autotest/server/site_tests/kernel_EmptyLines/ |
H A D | kernel_EmptyLines.py | 5 import logging, re namespace 30 match = re.search('^\[[\s0-9\.]+\]\s*$', result.stdout, re.M)
|
/external/google-breakpad/src/testing/gtest/xcode/Scripts/ |
H A D | versiongenerate.py | 53 import re namespace 75 version_expression = re.compile(r"AC_INIT\(.*?\[(\d+)\.(\d+)\.(\d+)\].*?\)", 76 re.DOTALL)
|
/external/llvm/test/MC/MachO/ |
H A D | x86_32-optimal_nop.s | 21 # nopl (%[re]ax) 31 # nopl 0(%[re]ax) 40 # nopl 0(%[re]ax,%[re]ax,1) 48 # nopw 0(%[re]ax,%[re]ax,1) 55 # nopl 0L(%[re]ax) 69 # nopl 0L(%[re]ax,%[re]ax,1) 82 # nopw 0L(%[re]a [all...] |
/external/protobuf/gtest/xcode/Scripts/ |
H A D | versiongenerate.py | 53 import re namespace 75 version_expression = re.compile(r"AC_INIT\(.*?\[(\d+)\.(\d+)\.(\d+)\].*?\)", 76 re.DOTALL)
|
/external/v8/test/mjsunit/ |
H A D | debug-stepin-builtin-callback-opt.js | 28 var re = /x/g; variable 30 for (var i = 0; i < 10000; i++) "x".replace(re, replaceCallback); 34 var result = "x".replace(re, replaceCallback); // Break 1.
|
H A D | string-slices-regexp.js | 34 var re = /^(((N({)?)|(R)|(U)|(V)|(B)|(H)|(n((n)|(r)|(v)|(h))?)|(r(r)?)|(v)|(b((n)|(b))?)|(h))|((Y)|(A)|(E)|(o(u)?)|(p(u)?)|(q(u)?)|(s)|(t)|(u)|(w)|(x(u)?)|(y)|(z)|(a((T)|(A)|(L))?)|(c)|(e)|(f(u)?)|(g(u)?)|(i)|(j)|(l)|(m(u)?)))+/; variable 35 var r = new RegExp(re) 40 var re = /x/; variable 41 assertEquals("a.yb", "_axyb_".slice(1,-1).replace(re, ".")); 42 re.compile("y"); 43 assertEquals("ax.b", "_axyb_".slice(1,-1).replace(re, ".")); 44 re.compile("(x)"); 45 assertEquals(["x", "x"], re.exec("_axyb_".slice(1,-1))); 46 re.compile("(y)"); 47 assertEquals(["y", "y"], re [all...] |
/external/vulkan-validation-layers/tests/gtest-1.7.0/xcode/Scripts/ |
H A D | versiongenerate.py | 53 import re namespace 75 version_expression = re.compile(r"AC_INIT\(.*?\[(\d+)\.(\d+)\.(\d+)\].*?\)", 76 re.DOTALL)
|
/external/google-breakpad/src/testing/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/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/v8/test/webkit/ |
H A D | pretty-print.js | 29 var re = /test/g;
|
H A D | regexp-in-and-foreach-handling.js | 40 var re = tests[i][0], 43 matches = re.exec(str); 55 var re = tests[i][0], 58 matches = re.exec(str);
|
/external/vulkan-validation-layers/tests/gtest-1.7.0/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/autotest/client/tests/hwclock/ |
H A D | hwclock.py | 3 import re, os, logging namespace 16 if not re.match('Sat *Feb *2 *03:04:.. 1980', date):
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/browser/ |
H A D | extension_page.py | 5 import re namespace 11 return re.match(r"(chrome-extension://)([^/]+)", url).group(2)
|
/external/chromium-trace/catapult/third_party/py_vulcanize/py_vulcanize/ |
H A D | html_generation_controller.py | 6 import re namespace 20 if re.search('url\(.+\)', contents):
|
/external/llvm/utils/ |
H A D | DSAclean.py | 11 import re namespace 23 if re.compile("label(\s*)=(\s*)\"\s%tmp(.\w*)*(\s*)\"").search(buffer):
|
H A D | DSAextract.py | 28 import re namespace 49 regexp_list.append(re.compile(name)) 52 nodeexp = re.compile('Node') 54 arrowexp = re.compile('->') 68 node_set |= set([re.split('\s+',buffer,2)[1]]) 105 node = re.split('\s+', buffer,2)[1]
|
/external/v8/test/mjsunit/regress/ |
H A D | regress-603.js | 32 var re = /b../; variable 34 return re('abcdefghijklm') + 'z';
|
/external/v8/tools/ |
H A D | jsmin.py | 47 import re namespace 68 m: The match object returned by re.search. 97 m: The match object returned by re.search. 105 return re.sub(r"\$\{([\w$%]+)\}", 115 if re.match("[\"'/]", matched_text): 117 m = re.match(r"var ", matched_text) 120 var_names = re.split(r",", var_names) 122 m = re.match(r"(function\b[^(]*)\((.*)\)\{$", matched_text) 126 args = re.split(r",", args) 185 m: The match object returned by re [all...] |
/external/pcre/dist/ |
H A D | pcre_scanner.cc | 73 void Scanner::SetSkipExpression(const char* re) { argument 75 if (re != NULL) { 76 skip_ = new RE(re); 87 void Scanner::Skip(const char* re) { argument 89 if (re != NULL) { 90 skip_ = new RE(re); 127 bool Scanner::LookingAt(const RE& re) const { 129 return re.DoMatch(input_, RE::ANCHOR_START, &consumed, 0, 0); 133 bool Scanner::Consume(const RE& re, argument 137 const bool result = re [all...] |
/external/regex-re2/re2/ |
H A D | regexp.cc | 132 Regexp* re = stack; local 133 stack = re->down_; 134 if (re->ref_ != 0) 135 LOG(DFATAL) << "Bad reference count " << re->ref_; 136 if (re->nsub_ > 0) { 137 Regexp** subs = re->sub(); 138 for (int i = 0; i < re->nsub_; i++) { 151 if (re->nsub_ > 1) 153 re->nsub_ = 0; 155 delete re; 177 Regexp* re = new Regexp(kRegexpHaveMatch, flags); local 222 Regexp* re = sub[0]; local 232 Regexp* re = new Regexp(op, flags); local 244 Regexp* re = new Regexp(op, flags); local 267 Regexp* re = new Regexp(kRegexpCapture, flags); local 275 Regexp* re = new Regexp(kRegexpRepeat, flags); local 284 Regexp* re = new Regexp(kRegexpLiteral, flags); local 301 Regexp* re = new Regexp(kRegexpCharClass, flags); local 507 PreVisit(Regexp* re, Ignored ignored, bool* stop) argument 512 ShortVisit(Regexp* re, Ignored ignored) argument 541 PreVisit(Regexp* re, Ignored ignored, bool* stop) argument 556 ShortVisit(Regexp* re, Ignored ignored) argument 585 PreVisit(Regexp* re, Ignored ignored, bool* stop) argument 596 ShortVisit(Regexp* re, Ignored ignored) argument [all...] |