/external/regex-re2/re2/testing/ |
re2_test.cc | 2 // Copyright 2002-2009 The RE2 Authors. All Rights Reserved. 14 #include "re2/re2.h" 15 #include "re2/regexp.h" 19 namespace re2 { namespace 21 TEST(RE2, HexTests) { 28 CHECK(RE2::FullMatch(#value, "([0-9a-fA-F]+)[uUlL]*", RE2::Hex(&v))); \ 30 CHECK(RE2::FullMatch("0x" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); [all...] |
possible_match_test.cc | 1 // Copyright 2006-2008 The RE2 Authors. All Rights Reserved. 7 #include "re2/prog.h" 8 #include "re2/re2.h" 9 #include "re2/regexp.h" 10 #include "re2/testing/regexp_generator.h" 11 #include "re2/testing/string_generator.h" 13 namespace re2 { namespace 119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen)); 132 EXPECT_FALSE(RE2("abc").PossibleMatchRange(&min, &max, 0)) [all...] |
set_test.cc | 1 // Copyright 2010 The RE2 Authors. All Rights Reserved. 10 #include "re2/re2.h" 11 #include "re2/set.h" 13 namespace re2 { namespace 16 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); 42 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED) [all...] |
exhaustive_tester.cc | 1 // Copyright 2008 The RE2 Authors. All Rights Reserved. 22 #include "re2/testing/exhaustive_tester.h" 23 #include "re2/testing/tester.h" 35 namespace re2 { namespace 59 static void PrintResult(const RE2& re, const StringPiece& input, RE2::Anchor anchor, StringPiece *m, int n) { 102 RE2 re(regexp); 103 RE2::Options longest; 105 RE2 relongest(regexp, longest); 112 PrintResult(re, input, RE2::ANCHOR_BOTH, group, ngroup) [all...] |
regexp_benchmark.cc | 1 // Copyright 2006-2008 The RE2 Authors. All Rights Reserved. 8 #include "re2/prog.h" 9 #include "re2/re2.h" 10 #include "re2/regexp.h" 14 namespace re2 { namespace 17 } // namespace re2 21 namespace re2 { namespace 88 RE2 re(regexp); 89 fprintf(stderr, "RE2: %7lld bytes (peak=%lld)\n", mc.HeapGrowth(), mc.PeakHeapGrowth()) 665 namespace re2 { namespace [all...] |
re2_arg_test.cc | 1 // Copyright 2005 The RE2 Authors. All Rights Reserved. 8 // supported by RE2::Arg class 11 #include "re2/re2.h" 13 namespace re2 { namespace 96 RE2::Arg arg(&r); \ 133 } // namespace re2
|
tester.h | 1 // Copyright 2008 The RE2 Authors. All Rights Reserved. 11 #include "re2/stringpiece.h" 12 #include "re2/prog.h" 13 #include "re2/regexp.h" 14 #include "re2/re2.h" 17 namespace re2 { namespace 29 kEngineRE2, // RE2, all submatches 30 kEngineRE2a, // RE2, only ask for match[0] 31 kEngineRE2b, // RE2, only ask whether it matche [all...] |
tester.cc | 1 // Copyright 2008 The RE2 Authors. All Rights Reserved. 9 #include "re2/testing/tester.h" 10 #include "re2/prog.h" 11 #include "re2/re2.h" 12 #include "re2/regexp.h" 23 namespace re2 { namespace 36 "RE2", 215 // Create re string that will be used for RE and RE2. 226 // Compile regexp to RE2 [all...] |
/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...] |
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.cc | 1 // Copyright 2003-2009 The RE2 Authors. All Rights Reserved. 5 // Regular expression interface RE2. 10 #include "re2/re2.h" 18 #include "re2/prog.h" 19 #include "re2/regexp.h" 21 DEFINE_bool(trace_re2, false, "trace RE2 execution"); 23 namespace re2 { namespace 29 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::FullMatchN> RE2::FullMatch [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 135 static Prog* CompileSet(const RE2::Options& options, RE2::Anchor anchor, 211 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
|
/external/regex-re2/ |
testinstall.cc | 1 // Copyright 2008 The RE2 Authors. All Rights Reserved. 5 #include <re2/re2.h> 6 #include <re2/filtered_re2.h> 9 using namespace re2; 14 f.Add("a.*b.*c", RE2::DefaultOptions, &id); 18 if(RE2::FullMatch("axbyc", "a.*b.*c")) {
|
/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>
|
mksyntaxgo | 22 // DO NOT EDIT. This file is generated by mksyntaxgo from the RE2 distribution.
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
RuntimeDyldMachOARM.h | 231 MachO::any_relocation_info RE2 = 243 uint32_t AddrB = MachO.getScatteredRelocationValue(RE2); 252 uint32_t OtherHalf = MachO.getAnyRelocationAddress(RE2) & 0xffff;
|
RuntimeDyldMachOI386.h | 146 MachO::any_relocation_info RE2 = 159 uint32_t AddrB = Obj.getScatteredRelocationValue(RE2);
|
/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]))
|