/external/regex-re2/re2/testing/ |
D | re2_test.cc | 21 TEST(RE2, HexTests) { in TEST() argument 28 CHECK(RE2::FullMatch(#value, "([0-9a-fA-F]+)[uUlL]*", RE2::Hex(&v))); \ in TEST() 30 CHECK(RE2::FullMatch("0x" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ in TEST() 46 TEST(RE2, OctalTests) { in TEST() argument 52 CHECK(RE2::FullMatch(#value, "([0-7]+)[uUlL]*", RE2::Octal(&v))); \ in TEST() 54 CHECK(RE2::FullMatch("0" #value, "([0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ in TEST() 70 TEST(RE2, DecimalTests) { in TEST() argument 76 CHECK(RE2::FullMatch(#value, "(-?[0-9]+)[uUlL]*", &v)); \ in TEST() 78 CHECK(RE2::FullMatch(#value, "(-?[0-9a-fA-FxX]+)[uUlL]*", RE2::CRadix(&v))); \ in TEST() 94 TEST(RE2, Replace) { in TEST() argument [all …]
|
D | possible_match_test.cc | 119 CHECK(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen)); in TEST() 132 EXPECT_FALSE(RE2("abc").PossibleMatchRange(&min, &max, 0)); in TEST() 137 EXPECT_FALSE(RE2("[\\s\\S]+", RE2::Latin1). in TEST() 140 EXPECT_FALSE(RE2("[\\0-\xFF]+", RE2::Latin1). in TEST() 143 EXPECT_FALSE(RE2(".+hello", RE2::Latin1). in TEST() 146 EXPECT_FALSE(RE2(".*hello", RE2::Latin1). in TEST() 149 EXPECT_FALSE(RE2(".*", RE2::Latin1). in TEST() 152 EXPECT_FALSE(RE2("\\C*"). in TEST() 157 EXPECT_FALSE(RE2("*hello").PossibleMatchRange(&min, &max, 10)) in TEST() 199 RE2 re(regexp, RE2::Latin1); in HandleRegexp() [all …]
|
D | set_test.cc | 16 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 42 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 73 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 85 RE2::Set s(RE2::DefaultOptions, RE2::ANCHOR_BOTH); in TEST()
|
D | exhaustive_tester.cc | 59 static void PrintResult(const RE2& re, const StringPiece& input, RE2::Anchor anchor, StringPiece *m… in PrintResult() 102 RE2 re(regexp); in HandleRegexp() 103 RE2::Options longest; in HandleRegexp() 105 RE2 relongest(regexp, longest); in HandleRegexp() 112 PrintResult(re, input, RE2::ANCHOR_BOTH, group, ngroup); in HandleRegexp() 114 PrintResult(re, input, RE2::UNANCHORED, group, ngroup); in HandleRegexp() 116 PrintResult(relongest, input, RE2::ANCHOR_BOTH, group, ngroup); in HandleRegexp() 118 PrintResult(relongest, input, RE2::UNANCHORED, group, ngroup); in HandleRegexp()
|
D | regexp_benchmark.cc | 88 RE2 re(regexp); in MemoryUsage() 90 RE2::FullMatch(text, re); in MemoryUsage() 96 static_cast<int>(sizeof(RE2)), in MemoryUsage() 272 RE2 re("((Hello World))"); in FindAndConsume() 276 CHECK(RE2::FindAndConsume(&t, re, &u)); in FindAndConsume() 651 RE2 re(regexp); in CompileRE2() 876 RE2 re(regexp); in SearchRE2() 879 CHECK_EQ(RE2::FullMatch(text, re), expect_match); in SearchRE2() 881 CHECK_EQ(RE2::PartialMatch(text, re), expect_match); in SearchRE2() 961 RE2 re(regexp); in SearchCachedRE2() [all …]
|
D | tester.cc | 228 RE2::Options options; in TestInstance() 230 options.set_encoding(RE2::Options::EncodingLatin1); in TestInstance() 233 re2_ = new RE2(re, options); in TestInstance() 385 RE2::Anchor re_anchor; in RunSearch() 387 re_anchor = RE2::ANCHOR_START; in RunSearch() 389 re_anchor = RE2::UNANCHORED; in RunSearch() 391 re_anchor = RE2::ANCHOR_BOTH; in RunSearch()
|
D | re2_arg_test.cc | 96 RE2::Arg arg(&r); \
|
/external/regex-re2/re2/ |
D | re2.cc | 29 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::FullMatchN> RE2::FullM… 30 const VariadicFunction2<bool, const StringPiece&, const RE2&, RE2::Arg, RE2::PartialMatchN> RE2::Pa… 31 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::ConsumeN> RE2::Consume; 32 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::FindAndConsumeN> RE2::FindAn… 36 const int RE2::Options::kDefaultMaxMem; // initialized in re2.h 39 RE2::Options::Options(RE2::CannedOptions opt) in Options() 40 : encoding_(opt == RE2::Latin1 ? EncodingLatin1 : EncodingUTF8), in Options() 41 posix_syntax_(opt == RE2::POSIX), in Options() 42 longest_match_(opt == RE2::POSIX), in Options() 43 log_errors_(opt != RE2::Quiet), in Options() [all …]
|
D | re2.h | 215 class RE2 { 262 RE2(const char* pattern); 263 RE2(const string& pattern); 265 RE2(const StringPiece& pattern); 266 RE2(const StringPiece& pattern, const Options& option); 267 ~RE2(); 328 static bool FullMatchN(const StringPiece& text, const RE2& re, 331 bool, const StringPiece&, const RE2&, Arg, RE2::FullMatchN> FullMatch; 335 static bool PartialMatchN(const StringPiece& text, const RE2& re, // 3..16 args 338 bool, const StringPiece&, const RE2&, Arg, RE2::PartialMatchN> PartialMatch; [all …]
|
D | filtered_re2.cc | 24 RE2::ErrorCode FilteredRE2::Add(const StringPiece& pattern, in Add() 25 const RE2::Options& options, int* id) { in Add() 26 RE2* re = new RE2(pattern, options); in Add() 27 RE2::ErrorCode code = re->error_code(); in Add() 60 if (RE2::PartialMatch(text, *re2_vec_[i])) in SlowFirstMatch() 74 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]])) in FirstMatch() 87 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]])) in AllMatches()
|
D | set.h | 18 class RE2::Set { 20 Set(const RE2::Options& options, RE2::Anchor anchor); 43 RE2::Options options_; 44 RE2::Anchor anchor_;
|
D | set.cc | 15 RE2::Set::Set(const RE2::Options& options, RE2::Anchor anchor) { in Set() 22 RE2::Set::~Set() { in ~Set() 28 int RE2::Set::Add(const StringPiece& pattern, string* error) { in Add() 69 bool RE2::Set::Compile() { in Compile() 94 bool RE2::Set::Match(const StringPiece& text, vector<int>* v) const { in Match()
|
D | filtered_re2.h | 40 RE2::ErrorCode Add(const StringPiece& pattern, 41 const RE2::Options& options, 76 RE2* GetRE2(int regexpid) const { return re2_vec_[regexpid]; } in GetRE2() 86 vector<RE2*> re2_vec_;
|
D | compile.cc | 135 static Prog* CompileSet(const RE2::Options& options, RE2::Anchor anchor, 211 void Setup(Regexp::ParseFlags, int64, RE2::Anchor); 234 RE2::Anchor anchor_; // anchor mode for RE2::Set 735 if (anchor_ != RE2::ANCHOR_BOTH) in PostVisit() 952 RE2::Anchor anchor) { in Setup() 994 c.Setup(re->parse_flags(), max_mem, RE2::ANCHOR_BOTH /* unused */); in Compile() 1092 Prog* Compiler::CompileSet(const RE2::Options& options, RE2::Anchor anchor, in CompileSet() 1105 if (anchor == RE2::UNANCHORED) { in CompileSet() 1134 Prog* Prog::CompileSet(const RE2::Options& options, RE2::Anchor anchor, in CompileSet()
|
D | prefilter.h | 16 class RE2; variable 52 static Prefilter* FromRE2(const RE2* re2);
|
/external/regex-re2/ |
D | README | 1 This is the source code repository for RE2, a regular expression library. 3 For documentation about how to install and use RE2, 13 Unless otherwise noted, the RE2 source files are distributed 16 RE2's native language is C++.
|
D | testinstall.cc | 14 f.Add("a.*b.*c", RE2::DefaultOptions, &id); in main() 18 if(RE2::FullMatch("axbyc", "a.*b.*c")) { in main()
|
D | ucs2.diff | 2 that removed UCS-2 support from RE2. As the explanation below 18 and RE2 has 1-byte lookahead (enough for UTF-8) 278 return RE2::ErrorBadUTF8; 280 return RE2::ErrorBadNamedCapture; 282 - return RE2::ErrorUnsupported; 284 return RE2::ErrorInternal; 288 case RE2::Options::EncodingLatin1: 291 - case RE2::Options::EncodingUCS2: 386 RE2::Options options; 388 options.set_encoding(RE2::Options::EncodingLatin1); [all …]
|
D | libre2.symbols | 3 # re2::RE2*
|
D | libre2.symbols.darwin | 2 # re2::RE2*
|
D | AUTHORS | 1 # This is the official list of RE2 authors for copyright purposes.
|
/external/regex-re2/doc/ |
D | 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>
|
D | 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/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
D | RuntimeDyldMachOARM.h | 231 MachO::any_relocation_info RE2 = in processHALFSECTDIFFRelocation() local 243 uint32_t AddrB = MachO.getScatteredRelocationValue(RE2); in processHALFSECTDIFFRelocation() 252 uint32_t OtherHalf = MachO.getAnyRelocationAddress(RE2) & 0xffff; in processHALFSECTDIFFRelocation()
|
D | RuntimeDyldMachOI386.h | 146 MachO::any_relocation_info RE2 = in processSECTDIFFRelocation() local 159 uint32_t AddrB = Obj.getScatteredRelocationValue(RE2); in processSECTDIFFRelocation()
|