/external/gtest/test/ |
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.sub(r'\d+ tests?, listed below' [all...] |
/ndk/sources/third_party/googletest/googletest/test/ |
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.sub(r'\d+ tests?, listed below' [all...] |
/external/llvm/utils/ |
DSAclean.py | 11 import re namespace 23 if re.compile("label(\s*)=(\s*)\"\s%tmp(.\w*)*(\s*)\"").search(buffer):
|
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]
|
/cts/tools/selinux/ |
SELinuxNeverallowTestGen.py | 3 import re namespace 17 no_comments = re.sub(r'#.+?$', r'', policy_str, flags = re.M) 19 return re.findall(r'(^neverallow\s.+?;)', no_comments, flags = re.M |re.S);
|
/development/samples/SupportLeanbackShowcase/ |
build-local.py | 6 import re namespace 14 if re.match(pattern, line, re.I|re.M): 15 line = re.sub(pattern, newVal, line) 33 matchObj = re.match(r'\s*<version>(.*)</version>', line)
|
/external/regex-re2/re2/testing/ |
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();
|
required_prefix_test.cc | 46 Regexp* re = Regexp::Parse(t.regexp, flags, NULL); local 47 CHECK(re) << " " << t.regexp; 51 CHECK_EQ(t.return_value, re->RequiredPrefix(&p, &f, &s)) 52 << " " << t.regexp << " " << (j==0 ? "latin1" : "utf") << " " << re->Dump(); 62 re->Decref();
|
/external/v8/test/mjsunit/ |
regexp-stack-overflow.js | 7 var re = /\w/; variable 8 re.test("a"); // Trigger regexp compile. 14 return re.test("b");
|
/external/v8/test/mjsunit/regress/ |
regress-crbug-548580.js | 8 var re = /(?=[d#.])/; 9 re.a = v; 10 return re;
|
regress-52801.js | 39 var re = /a/g; variable 45 re.test(str); 46 assertEquals(5, re.lastIndex); 48 re.lastIndex = 0; 49 re.test(str); 50 assertEquals(5, re.lastIndex); // Fails if caching. 52 re.lastIndex = 0; 53 re.test(str); 54 assertEquals(5, re.lastIndex); // Fails if caching. 58 re = /a/g [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
RegexpPool.java | 49 * @param re The regular expression to add to the pool. 58 public void add(String re, Object ret) throws REException { 59 add(re, ret, false); 66 * @param re The regular expression to be replaced in the pool. 74 public void replace(String re, Object ret) { 76 add(re, ret, true); 84 * @param re The regular expression to be deleted from the pool. 88 public Object delete(String re) { 92 int len = re.length() - 1; 96 if (!re.startsWith("*") | 268 String re = null; field in class:RegexpNode [all...] |
/external/v8/tools/ |
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.search [all...] |
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/h8300/ |
h8300.exp | 30 -re " +\[0-9\]+ 0000 8910\[^\n\]*\n" { set x [expr $x+1] } 31 -re " +\[0-9\]+ 0002 0819\[^\n\]*\n" { set x [expr $x+1] } 32 -re " +\[0-9\]+ 0004 0912\[^\n\]*\n" { set x [expr $x+1] } 33 -re " +\[0-9\]+ 0006 0B04\[^\n\]*\n" { set x [expr $x+1] } 34 -re " +\[0-9\]+ 0008 0B85\[^\n\]*\n" { set x [expr $x+1] } 35 -re " +\[0-9\]+ 000a 0E89\[^\n\]*\n" { set x [expr $x+1] } 36 -re " +\[0-9\]+ 000c 9210\[^\n\]*\n" { set x [expr $x+1] } 37 -re " +\[0-9\]+ 000e 1889\[^\n\]*\n" { set x [expr $x+1] } 38 -re " +\[0-9\]+ 0010 1901\[^\n\]*\n" { set x [expr $x+1] } 39 -re " +\[0-9\]+ 0012 1B04\[^\n\]*\n" { set x [expr $x+1] [all...] |
/external/pcre/dist/ |
pcre_scanner.cc | 73 void Scanner::SetSkipExpression(const char* re) { 75 if (re != NULL) { 76 skip_ = new RE(re); 87 void Scanner::Skip(const char* re) { 89 if (re != NULL) { 90 skip_ = new RE(re); 127 bool Scanner::LookingAt(const RE& re) const [all...] |
pcredemo.c | 48 pcre *re; local 99 re = pcre_compile( 108 if (re == NULL) 122 re, /* the compiled pattern */ 143 pcre_free(re); /* Release memory used for the compiled pattern */ 188 re, /* the compiled pattern */ 202 re, /* the compiled pattern */ 208 re, /* the compiled pattern */ 258 pcre_free(re); /* Release the memory used for the compiled pattern */ 266 (void)pcre_fullinfo(re, NULL, PCRE_INFO_OPTIONS, &option_bits) [all...] |
/toolchain/binutils/binutils-2.25/gas/testsuite/gas/xtensa/ |
all.exp | 28 -re ":4: Error:.*out of range" { set x1 1 } 43 -re "^.*2:.*entry" { set x1 1 } 58 -re "^.*2:.*entry" { set x1 1 } 74 -re "^.*0:.*loop" { set x1 1 } 89 -re "^.*2:.*loop" { set x1 1 }
|
/prebuilts/misc/common/swig/include/2.0.11/python/ |
pycomplex.swg | 55 double re = PyComplex_RealAsDouble(o); 57 if ((-FLT_MAX <= re && re <= FLT_MAX) && (-FLT_MAX <= im && im <= FLT_MAX)) { 58 if (val) *val = Constructor(%numeric_cast(re, float), 65 float re; 66 int res = SWIG_AddCast(SWIG_AsVal(float)(o, &re)); 68 if (val) *val = Constructor(re, 0.0);
|
/external/regex-re2/re2/ |
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 [all...] |
/external/selinux/policycoreutils/sepolicy/sepolicy/ |
generate.py | 27 import re namespace 341 if not re.match(r"^[a-zA-Z0-9-_]+$", name): 518 return re.sub("TEMPLATETYPE", self.name, executable.te_uid_rules) 524 return re.sub("TEMPLATETYPE", self.name, executable.te_syslog_rules) 530 return re.sub("TEMPLATETYPE", self.name, executable.te_resolve_rules) 536 return re.sub("TEMPLATETYPE", self.name, executable.te_kerberos_rules) 542 return re.sub("TEMPLATETYPE", self.name, executable.te_manage_krb5_rcache_rules) 549 newte = re.sub("TEMPLATETYPE", self.name, executable.te_pam_rules) 555 newte = re.sub("TEMPLATETYPE", self.name, executable.te_audit_rules) 561 newte = re.sub("TEMPLATETYPE", self.name, executable.te_etc_rules [all...] |
/external/protobuf/gtest/test/ |
gtest_output_test.py | 44 import re namespace 103 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output) 110 return re.sub(r'Stack trace:(.|\n)*?\n\n', 118 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output) 124 return re.sub(r'\(\d+ ms', '(? ms', output) 138 return re.sub(r'unsigned int', 'unsigned', test_output) 144 output = re.sub(r'\d+ tests?, listed below', 146 output = re.sub(r'\d+ FAILED TESTS', 148 output = re.sub(r'\d+ tests? from \d+ test cases?', 150 output = re.sub(r'\d+ tests? from ([a-zA-Z_])' [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/simplecTreeParser/ |
SimpleCTP.java | 100 catch (RecognitionException re) { 101 reportError(re); 102 recover(input,re); 192 catch (RecognitionException re) { 193 reportError(re); 194 recover(input,re); 229 catch (RecognitionException re) { 230 reportError(re); 231 recover(input,re); 252 catch (RecognitionException re) { [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/examples/simplecTreeParser/output1/ |
SimpleCTP.java | 100 catch (RecognitionException re) { 101 reportError(re); 102 recover(input,re); 192 catch (RecognitionException re) { 193 reportError(re); 194 recover(input,re); 229 catch (RecognitionException re) { 230 reportError(re); 231 recover(input,re); 252 catch (RecognitionException re) { [all...] |
/external/autotest/client/tools/ |
avgtime | 2 import sys, os, re namespace 24 user = float(re.match(r'([\d\.]+)', user).group(0)) 25 system = float(re.match(r'([\d\.]+)', system).group(0)) 26 m = re.match(r'(\d+):([\d\.]+)', elapsed) 28 cpu = int(re.match(r'(\d+)', cpu).group(0))
|
/prebuilts/misc/common/swig/include/2.0.11/ruby/ |
rubycomplex.swg | 61 VALUE re = rb_float_new(Real(c)); 63 return rb_complex_new(re, im); 81 double re = 0; 82 SWIG_AsVal_double( real, &re ); 85 *val = Constructor(re, im); 114 double re = 0; 115 SWIG_AsVal_double( real, &re ); 118 if ((-FLT_MAX <= re && re <= FLT_MAX) && 120 if (val) *val = Constructor(%numeric_cast(re, float) [all...] |