/external/regex-re2/re2/testing/ |
compile_test.cc | 10 #include "re2/regexp.h" 18 // the regexp compiles to the expected code. 24 const char* regexp; member in struct:re2::Test 108 Regexp* re = Regexp::Parse(t.regexp, Regexp::PerlX|Regexp::Latin1, NULL); 110 LOG(ERROR) << "Cannot parse: " << t.regexp; 116 LOG(ERROR) << "Cannot compile: " << t.regexp; [all...] |
exhaustive_tester.cc | 74 // Processes a single generated regexp. 75 // Compiles it using Regexp interface and PCRE, and then 79 string regexp = const_regexp; local 81 regexp = StringPrintf(topwrapper_.c_str(), regexp.c_str()); 84 printf("\r%s", regexp.c_str()); 90 // other implementations, such as Go's regexp package. 100 printf("%s\n", escape(regexp)); 102 RE2 re(regexp); 105 RE2 relongest(regexp, longest) [all...] |
tester.h | 13 #include "re2/regexp.h" 19 class Regexp; 21 // All the supported regexp engines. 47 // A TestInstance caches per-regexp state for a given 54 TestInstance(const StringPiece& regexp, Prog::MatchKind kind, 55 Regexp::ParseFlags flags); 57 Regexp::ParseFlags flags() { return flags_; } 75 const StringPiece& regexp_str_; // regexp being tested 77 Regexp::ParseFlags flags_; // flags for parsing regexp_str_ 80 Regexp* regexp_; // parsed regex [all...] |
parse_test.cc | 10 #include "re2/regexp.h" 14 static const Regexp::ParseFlags TestZeroFlags = Regexp::ParseFlags(1<<30); 17 const char* regexp; member in struct:re2::Test 19 Regexp::ParseFlags flags; 22 static Regexp::ParseFlags kTestFlags = Regexp::MatchNL | 23 Regexp::PerlX | 24 Regexp::PerlClasses | 25 Regexp::UnicodeGroups [all...] |
/external/libxml2/ |
testAutomata.c | 38 xmlRegexpPtr regexp = NULL; local 171 regexp = xmlAutomataCompile(am); 174 if (regexp == NULL) { 180 if (regexp == NULL) { 184 exec = xmlRegNewExecCtxt(regexp, NULL, NULL); 198 } else if (regexp != NULL) { 200 exec = xmlRegNewExecCtxt(regexp, NULL, NULL); 209 if (regexp != NULL) 210 xmlRegFreeRegexp(regexp); 225 xmlRegexpPtr regexp; local [all...] |
/external/parameter-framework/upstream/tools/coverage/ |
aplog2coverage.sh | 45 -e, --regexp A regex to filter (egrep) logs in order to keep only the PFW log lines 64 --longoptions "help,domains:,ouput:,regexp:,parser_option:,force" \ 126 xargs --null grep --extended-regexp "$filterRegex" |
|
/prebuilts/go/darwin-x86/test/bench/shootout/ |
regex-dna.go | 42 "regexp" 76 re := regexp.MustCompile(pat) 97 bytes = regexp.MustCompile("(>[^\n]+)?\n").ReplaceAll(bytes, []byte{}) 103 bytes = regexp.MustCompile(sub.pat).ReplaceAll(bytes, []byte(sub.repl))
|
regex-dna-parallel.go | 42 "regexp" 77 re := regexp.MustCompile(pat) 99 bytes = regexp.MustCompile("(>[^\n]+)?\n").ReplaceAll(bytes, []byte{}) 115 bb = regexp.MustCompile(sub.pat).ReplaceAll(bb, []byte(sub.repl))
|
/prebuilts/go/linux-x86/test/bench/shootout/ |
regex-dna.go | 42 "regexp" 76 re := regexp.MustCompile(pat) 97 bytes = regexp.MustCompile("(>[^\n]+)?\n").ReplaceAll(bytes, []byte{}) 103 bytes = regexp.MustCompile(sub.pat).ReplaceAll(bytes, []byte(sub.repl))
|
regex-dna-parallel.go | 42 "regexp" 77 re := regexp.MustCompile(pat) 99 bytes = regexp.MustCompile("(>[^\n]+)?\n").ReplaceAll(bytes, []byte{}) 115 bb = regexp.MustCompile(sub.pat).ReplaceAll(bb, []byte(sub.repl))
|
/external/v8/src/runtime/ |
runtime-regexp.cc | 11 #include "src/regexp/jsregexp-inl.h" 12 #include "src/regexp/jsregexp.h" 470 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, 475 int capture_count = regexp->CaptureCount(); 484 // Shortcut for simple non-regexp global replacements 485 if (regexp->TypeTag() == JSRegExp::ATOM && simple_replace) { 488 isolate, subject, regexp, replacement, last_match_info); 491 isolate, subject, regexp, replacement, last_match_info); 495 RegExpImpl::GlobalCache global_cache(regexp, subject, true, isolate); 555 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, [all...] |
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/resolver/ |
Resolver.java | 76 public void addImplicitResolver(Tag tag, Pattern regexp, String first) { 83 curr.add(new ResolverTuple(tag, regexp)); 97 curr.add(new ResolverTuple(tag, regexp)); 113 Pattern regexp = v.getRegexp(); local 114 if (regexp.matcher(value).matches()) { 122 Pattern regexp = v.getRegexp(); local 123 if (regexp.matcher(value).matches()) {
|
/prebuilts/go/darwin-x86/src/cmd/pprof/internal/profile/ |
prune.go | 11 "regexp" 17 func (p *Profile) Prune(dropRx, keepRx *regexp.Regexp) { 82 var keep, drop *regexp.Regexp 86 if drop, err = regexp.Compile("^(" + p.DropFrames + ")$"); err != nil { 87 return fmt.Errorf("failed to compile regexp %s: %v", p.DropFrames, err) 90 if keep, err = regexp.Compile("^(" + p.KeepFrames + ")$"); err != nil { 91 return fmt.Errorf("failed to compile regexp %s: %v", p.KeepFrames, err)
|
/prebuilts/go/linux-x86/src/cmd/pprof/internal/profile/ |
prune.go | 11 "regexp" 17 func (p *Profile) Prune(dropRx, keepRx *regexp.Regexp) { 82 var keep, drop *regexp.Regexp 86 if drop, err = regexp.Compile("^(" + p.DropFrames + ")$"); err != nil { 87 return fmt.Errorf("failed to compile regexp %s: %v", p.DropFrames, err) 90 if keep, err = regexp.Compile("^(" + p.KeepFrames + ")$"); err != nil { 91 return fmt.Errorf("failed to compile regexp %s: %v", p.KeepFrames, err)
|
/external/v8/test/webkit/ |
regexp-many-brackets.js | 30 var regexp = ""; variable 32 regexp += "("; 33 regexp += "hello"; 35 regexp += ")"; 41 var manyBracketsRegExp = new RegExp(regexp);
|
/prebuilts/go/darwin-x86/test/bench/go1/ |
regexp_test.go | 9 "regexp" 13 // benchmark based on regexp/exec_test.go 34 r := regexp.MustCompile(re)
|
/prebuilts/go/linux-x86/test/bench/go1/ |
regexp_test.go | 9 "regexp" 13 // benchmark based on regexp/exec_test.go 34 r := regexp.MustCompile(re)
|
/external/chromium-trace/catapult/telemetry/third_party/webpagereplay/third_party/dns/rdtypes/IN/ |
NAPTR.py | 40 @ivar regexp: regular expression 41 @type regexp: string 46 __slots__ = ['order', 'preference', 'flags', 'service', 'regexp', 50 regexp, replacement): 56 self.regexp = regexp 65 dns.rdata._escapify(self.regexp), 73 regexp = tok.get_string() 78 regexp, replacement) 87 _write_string(file, self.regexp) [all...] |
/external/v8/src/js/ |
regexp.js | 14 var GlobalRegExp = global.RegExp; 34 // regexp match. The property RegExpLastMatchInfo includes the matchIndices 35 // array of the last successful regexp match (an array of start/end index 107 "RegExp.prototype.compile", this); 124 function DoRegExpExec(regexp, string, index) { 125 return %_RegExpExec(regexp, string, index, RegExpLastMatchInfo); 155 function RegExpExecNoTests(regexp, string, start) { 156 // Must be called with RegExp, string and positive integer as arguments. 157 var matchInfo = %_RegExpExec(regexp, string, start, RegExpLastMatchInfo); 160 if (REGEXP_STICKY(regexp)) regexp.lastIndex = matchInfo[CAPTURE1] [all...] |
/external/chromium-trace/catapult/telemetry/third_party/pyserial/serial/tools/ |
list_ports.py | 36 def grep(regexp): 42 r = re.compile(regexp, re.I) 53 usage = "%prog [options] [<regexp>]", 82 parser.error('more than one regexp not supported') 83 print "Filtered list with regexp: %r" % (args[0],)
|
/external/llvm/utils/ |
DSAextract.py | 64 for regexp in regexp_list: 67 if regexp.search(buffer):
|
/external/regex-re2/re2/ |
make_perl_groups.pl | 38 my $regexp = "[$class]"; 42 if ($i <= 128 && chr($i) =~ $regexp) {
|
/external/v8/test/mjsunit/ |
regexp-stack-overflow.js | 8 re.test("a"); // Trigger regexp compile.
|
/external/v8/test/mjsunit/regress/ |
regress-crbug-435825.js | 8 /(invalid regexp/;
|
/prebuilts/gdb/darwin-x86/share/gdb/python/gdb/ |
printing.py | 171 def __init__(self, name, regexp, gen_printer): 173 self.regexp = regexp 175 self.compiled_re = re.compile(regexp) 180 def add_printer(self, name, regexp, gen_printer): 187 regexp: The regular expression, as a string. 195 # NOTE: A previous version made the name of each printer the regexp. 197 # cumbersome to make a regexp of a regexp). So now the name is a 200 self.subprinters.append(self.RegexpSubprinter(name, regexp, [all...] |