/external/regex-re2/re2/ |
set.h | 1 // Copyright 2010 The RE2 Authors. All Rights Reserved. 11 #include "re2/re2.h" 13 namespace re2 { namespace 16 // An RE2::Set represents a collection of regexps that can 18 class RE2::Set { 20 Set(const RE2::Options& options, RE2::Anchor anchor); 23 // Add adds regexp pattern to the set, interpreted using the RE2 options. 24 // (The RE2 constructor's default options parameter is RE2::UTF8. [all...] |
re2.cc | 1 // Copyright 2003-2009 The RE2 Authors. All Rights Reserved. 5 // Regular expression interface RE2. 10 #include "re2/re2.h" 19 #include "re2/prog.h" 20 #include "re2/regexp.h" 22 DEFINE_bool(trace_re2, false, "trace RE2 execution"); 24 namespace re2 { namespace 30 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::FullMatchN> RE2::FullMatch [all...] |
filtered_re2.h | 1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 5 // The class FilteredRE2 is used as a wrapper to multiple RE2 regexps. 25 #include "re2/re2.h" 27 namespace re2 { namespace 37 // Uses RE2 constructor to create a RE2 object (re). Returns 40 RE2::ErrorCode Add(const StringPiece& pattern, 41 const RE2::Options& options, 75 // Get the individual RE2 objects. Useful for testing [all...] |
re2.h | 1 // Copyright 2003-2009 The RE2 Authors. All Rights Reserved. 8 // C++ interface to the re2 regular-expression library. 9 // RE2 supports Perl-style regular expressions (with extensions like 15 // This module uses the re2 library and hence supports 20 // See http://code.google.com/p/re2/wiki/Syntax for the syntax 21 // supported by RE2, and a comparison with PCRE and PERL regexps. 40 // CHECK(RE2::FullMatch("hello", "h.*o")); 43 // CHECK(!RE2::FullMatch("hello", "e")); 49 // The RE2::Latin1 option causes them to be interpreted as Latin-1. 52 // CHECK(RE2::FullMatch(utf8_string, RE2(utf8_pattern))) 189 namespace re2 { namespace [all...] |
filtered_re2.cc | 1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 7 #include "re2/filtered_re2.h" 8 #include "re2/prefilter.h" 9 #include "re2/prefilter_tree.h" 11 namespace re2 { namespace 24 RE2::ErrorCode FilteredRE2::Add(const StringPiece& pattern, 25 const RE2::Options& options, int* id) { 26 RE2* re = new RE2(pattern, options); 27 RE2::ErrorCode code = re->error_code() [all...] |
set.cc | 1 // Copyright 2010 The RE2 Authors. All Rights Reserved. 5 #include "re2/set.h" 8 #include "re2/stringpiece.h" 9 #include "re2/prog.h" 10 #include "re2/re2.h" 11 #include "re2/regexp.h" 13 using namespace re2; 15 RE2::Set::Set(const RE2::Options& options, RE2::Anchor anchor) [all...] |
prefilter.h | 1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 14 namespace re2 { namespace 16 class RE2; 49 // Given a RE2, return a Prefilter. The caller takes ownership of 52 static Prefilter* FromRE2(const RE2* re2); 103 } // namespace re2
|
compile.cc | 1 // Copyright 2007 The RE2 Authors. All Rights Reserved. 11 #include "re2/prog.h" 12 #include "re2/re2.h" 13 #include "re2/regexp.h" 14 #include "re2/walker-inl.h" 16 namespace re2 { namespace 134 static Prog* CompileSet(const RE2::Options& options, RE2::Anchor anchor, 210 void Setup(Regexp::ParseFlags, int64, RE2::Anchor) [all...] |
prog.h | 1 // Copyright 2007 The RE2 Authors. All Rights Reserved. 13 #include "re2/re2.h" 15 namespace re2 { namespace 154 // Match ID to identify this match (for re2::Set). 334 static Prog* CompileSet(const RE2::Options& options, RE2::Anchor anchor, 374 } // namespace re2
|
prefilter.cc | 1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 6 #include "re2/prefilter.h" 7 #include "re2/re2.h" 8 #include "re2/unicode_casefold.h" 9 #include "re2/walker-inl.h" 11 namespace re2 { namespace 659 Prefilter* Prefilter::FromRE2(const RE2* re2) { 660 if (re2 == NULL [all...] |
/external/regex-re2/ |
testinstall.cc | 1 #include <re2/re2.h> 2 #include <re2/filtered_re2.h> 5 using namespace re2; 10 f.Add("a.*b.*c", RE2::DefaultOptions, &id); 14 if(RE2::FullMatch("axbyc", "a.*b.*c")) {
|
Makefile | 1 # Copyright 2009 The RE2 Authors. All Rights Reserved. 47 re2/filtered_re2.h\ 48 re2/re2.h\ 49 re2/set.h\ 50 re2/stringpiece.h\ 51 re2/variadic_function.h\ 68 re2/filtered_re2.h\ 69 re2/prefilter.h\ 70 re2/prefilter_tree.h [all...] |
/external/regex-re2/doc/ |
mksyntaxhtml | 25 <title>RE2 regular expression syntax reference</title> 28 <h1>RE2 regular expression syntax reference</h1> 31 <tr><td colspan=2>This page lists the regular expression syntax accepted by RE2.</td></tr> 33 <tr><td colspan=2>Grayed out expressions are not supported by RE2.</td></tr>
|
mksyntaxwiki | 27 <tr><td colspan="2">This page lists the regular expression syntax accepted by RE2.</td></tr> 29 <tr><td colspan="2">Grayed out expressions are not supported by RE2.</td></tr>
|
/external/regex-re2/benchlog/ |
mktable | 8 <tr><th>System</th><th>PCRE</th><th>RE2</th></tr> 12 my $ns_re2 = $data{$sys}->{sprintf($name, "RE2")}->{'ns/op'}; 29 "RE2" => "0 0 1", 46 foreach my $who ("PCRE", "RE2") { 78 foreach my $who ("PCRE", "RE2") {
|
/external/regex-re2/util/ |
benchmark.cc | 1 // Copyright 2009 The RE2 Authors. All Rights Reserved. 8 #include "re2/re2.h" 13 using namespace re2; 139 if(RE2::PartialMatch(name, argv[i]))
|