/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/testing/ |
D | re2_test.cc | 29 TEST(RE2, HexTests) { in TEST() argument 34 RE2::FullMatch(#value, "([0-9a-fA-F]+)[uUlL]*", RE2::Hex(&v))); \ in TEST() 36 ASSERT_TRUE(RE2::FullMatch("0x" #value, "([0-9a-fA-FxX]+)[uUlL]*", \ in TEST() 37 RE2::CRadix(&v))); \ in TEST() 53 TEST(RE2, OctalTests) { in TEST() argument 57 ASSERT_TRUE(RE2::FullMatch(#value, "([0-7]+)[uUlL]*", RE2::Octal(&v))); \ in TEST() 59 ASSERT_TRUE(RE2::FullMatch("0" #value, "([0-9a-fA-FxX]+)[uUlL]*", \ in TEST() 60 RE2::CRadix(&v))); \ in TEST() 76 TEST(RE2, DecimalTests) { in TEST() argument 80 ASSERT_TRUE(RE2::FullMatch(#value, "(-?[0-9]+)[uUlL]*", &v)); \ in TEST() [all …]
|
D | set_test.cc | 17 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 44 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 76 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 94 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 117 RE2::Set s(RE2::DefaultOptions, RE2::ANCHOR_BOTH); in TEST() 150 RE2::Set s(RE2::DefaultOptions, RE2::UNANCHORED); in TEST() 166 RE2::Set s(RE2::DefaultOptions, RE2::ANCHOR_BOTH); in TEST() 182 RE2::Set s(RE2::DefaultOptions, RE2::ANCHOR_BOTH); in TEST()
|
D | possible_match_test.cc | 125 ASSERT_TRUE(RE2(t.regexp).PossibleMatchRange(&min, &max, t.maxlen)); in TEST() 138 EXPECT_FALSE(RE2("abc").PossibleMatchRange(&min, &max, 0)); in TEST() 143 EXPECT_FALSE(RE2("[\\s\\S]+", RE2::Latin1). in TEST() 146 EXPECT_FALSE(RE2("[\\0-\xFF]+", RE2::Latin1). in TEST() 149 EXPECT_FALSE(RE2(".+hello", RE2::Latin1). in TEST() 152 EXPECT_FALSE(RE2(".*hello", RE2::Latin1). in TEST() 155 EXPECT_FALSE(RE2(".*", RE2::Latin1). in TEST() 158 EXPECT_FALSE(RE2("\\C*"). in TEST() 163 EXPECT_FALSE(RE2("*hello").PossibleMatchRange(&min, &max, 10)) in TEST() 206 RE2 re(regexp, RE2::Latin1); in HandleRegexp() [all …]
|
D | exhaustive_tester.cc | 58 static void PrintResult(const RE2& re, const StringPiece& input, RE2::Anchor anchor, StringPiece *m… in PrintResult() 104 RE2 re(regexp); in HandleRegexp() 105 RE2::Options longest; in HandleRegexp() 107 RE2 relongest(regexp, longest); in HandleRegexp() 114 PrintResult(re, input, RE2::ANCHOR_BOTH, group, ngroup); in HandleRegexp() 116 PrintResult(re, input, RE2::UNANCHORED, group, ngroup); in HandleRegexp() 118 PrintResult(relongest, input, RE2::ANCHOR_BOTH, group, ngroup); in HandleRegexp() 120 PrintResult(relongest, input, RE2::UNANCHORED, group, ngroup); in HandleRegexp()
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/ |
D | re2.h | 226 class RE2 { 273 RE2(const char* pattern); 274 RE2(const std::string& pattern); 276 RE2(const StringPiece& pattern); 277 RE2(const StringPiece& pattern, const Options& options); 278 ~RE2(); 322 static bool FullMatchN(const StringPiece& text, const RE2& re, 324 static bool PartialMatchN(const StringPiece& text, const RE2& re, 326 static bool ConsumeN(StringPiece* input, const RE2& re, 328 static bool FindAndConsumeN(StringPiece* input, const RE2& re, [all …]
|
D | re2.cc | 43 const int RE2::Options::kDefaultMaxMem; // initialized in re2.h 45 RE2::Options::Options(RE2::CannedOptions opt) in Options() 46 : encoding_(opt == RE2::Latin1 ? EncodingLatin1 : EncodingUTF8), in Options() 47 posix_syntax_(opt == RE2::POSIX), in Options() 48 longest_match_(opt == RE2::POSIX), in Options() 49 log_errors_(opt != RE2::Quiet), in Options() 70 static RE2::ErrorCode RegexpErrorToRE2(re2::RegexpStatusCode code) { in RegexpErrorToRE2() 73 return RE2::NoError; in RegexpErrorToRE2() 75 return RE2::ErrorInternal; in RegexpErrorToRE2() 77 return RE2::ErrorBadEscape; in RegexpErrorToRE2() [all …]
|
D | filtered_re2.cc | 33 RE2::ErrorCode FilteredRE2::Add(const StringPiece& pattern, in Add() 34 const RE2::Options& options, int* id) { in Add() 35 RE2* re = new RE2(pattern, options); in Add() 36 RE2::ErrorCode code = re->error_code(); in Add() 74 if (RE2::PartialMatch(text, *re2_vec_[i])) in SlowFirstMatch() 88 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]])) in FirstMatch() 101 if (RE2::PartialMatch(text, *re2_vec_[regexps[i]])) in AllMatches()
|
D | set.h | 23 class RE2::Set { 36 Set(const RE2::Options& options, RE2::Anchor anchor); 67 RE2::Options options_; 68 RE2::Anchor anchor_;
|
D | set.cc | 21 RE2::Set::Set(const RE2::Options& options, RE2::Anchor anchor) { in Set() 30 RE2::Set::~Set() { in ~Set() 36 int RE2::Set::Add(const StringPiece& pattern, std::string* error) { in Add() 75 bool RE2::Set::Compile() { in Compile() 105 bool RE2::Set::Match(const StringPiece& text, std::vector<int>* v) const { in Match() 109 bool RE2::Set::Match(const StringPiece& text, std::vector<int>* v, in Match()
|
D | filtered_re2.h | 42 RE2::ErrorCode Add(const StringPiece& pattern, 43 const RE2::Options& options, 84 const RE2& GetRE2(int regexpid) const { return *re2_vec_[regexpid]; } in GetRE2() 95 std::vector<RE2*> re2_vec_;
|
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/fuzzing/ |
D | re2_fuzzer.cc | 21 void TestOneInput(StringPiece pattern, const RE2::Options& options, in TestOneInput() 53 RE2 re(pattern, options); in TestOneInput() 101 RE2::FullMatch(sp, re); in TestOneInput() 102 RE2::PartialMatch(sp, re); in TestOneInput() 103 RE2::Consume(&sp, re); in TestOneInput() 105 RE2::FindAndConsume(&sp, re); in TestOneInput() 111 RE2::FullMatch(sp, re, &s); in TestOneInput() 113 RE2::PartialMatch(sp, re, &l); in TestOneInput() 115 RE2::Consume(&sp, re, &f); in TestOneInput() 118 RE2::FindAndConsume(&sp, re, &d); in TestOneInput() [all …]
|
/external/rust/crates/regex/src/testdata/ |
D | repetition.dat | 46 E ((..)|(.)){2} aaa (0,3)(2,3)(0,2)(2,3) RE2/Go 50 E ((..)|(.))* aaa (0,3)(2,3)(0,2)(2,3) RE2/Go 59 E ((..)|(.)){3} aaaa (0,4)(3,4)(0,2)(3,4) RE2/Go 70 E ((..)|(.)){3} aaaaa (0,5)(4,5)(2,4)(4,5) RE2/Go 73 E ((..)|(.))* aaaaa (0,5)(4,5)(2,4)(4,5) RE2/Go 100 :HA#110:E X(.?){0,8}Y X1234567Y (0,9)(8,8) RE2/Go 102 :HA#111:E X(.?){1,8}Y X1234567Y (0,9)(8,8) RE2/Go 104 :HA#112:E X(.?){2,8}Y X1234567Y (0,9)(8,8) RE2/Go 106 :HA#113:E X(.?){3,8}Y X1234567Y (0,9)(8,8) RE2/Go 108 :HA#114:E X(.?){4,8}Y X1234567Y (0,9)(8,8) RE2/Go [all …]
|
D | nullsubexpr.dat | 5 E SAME x (0,0)(?,?) RE2/Go 23 E SAME x (0,0)(?,?) RE2/Go 32 E SAME b (0,0)(?,?) RE2/Go 45 E SAME aaaaaa (0,0)(?,?) RE2/Go 48 E SAME ababab (0,0)(?,?) RE2/Go 69 E (a*)*(x) x (0,1)(?,?)(0,1) RE2/Go
|
/external/rust/crates/regex-automata/data/fowler-tests/ |
D | repetition.dat | 46 E ((..)|(.)){2} aaa (0,3)(2,3)(0,2)(2,3) RE2/Go 50 E ((..)|(.))* aaa (0,3)(2,3)(0,2)(2,3) RE2/Go 59 E ((..)|(.)){3} aaaa (0,4)(3,4)(0,2)(3,4) RE2/Go 70 E ((..)|(.)){3} aaaaa (0,5)(4,5)(2,4)(4,5) RE2/Go 73 E ((..)|(.))* aaaaa (0,5)(4,5)(2,4)(4,5) RE2/Go 100 :HA#110:E X(.?){0,8}Y X1234567Y (0,9)(8,8) RE2/Go 102 :HA#111:E X(.?){1,8}Y X1234567Y (0,9)(8,8) RE2/Go 104 :HA#112:E X(.?){2,8}Y X1234567Y (0,9)(8,8) RE2/Go 106 :HA#113:E X(.?){3,8}Y X1234567Y (0,9)(8,8) RE2/Go 108 :HA#114:E X(.?){4,8}Y X1234567Y (0,9)(8,8) RE2/Go [all …]
|
D | nullsubexpr.dat | 5 E SAME x (0,0)(?,?) RE2/Go 23 E SAME x (0,0)(?,?) RE2/Go 32 E SAME b (0,0)(?,?) RE2/Go 45 E SAME aaaaaa (0,0)(?,?) RE2/Go 48 E SAME ababab (0,0)(?,?) RE2/Go 69 E (a*)*(x) x (0,1)(?,?)(0,1) RE2/Go
|
/external/rust/crates/regex-automata/data/tests/fowler/ |
D | repetition-long.dat | 22 :HA#110:E X(.?){0,8}Y X1234567Y (0,9)(8,8) RE2/Go 24 :HA#111:E X(.?){1,8}Y X1234567Y (0,9)(8,8) RE2/Go 26 :HA#112:E X(.?){2,8}Y X1234567Y (0,9)(8,8) RE2/Go 28 :HA#113:E X(.?){3,8}Y X1234567Y (0,9)(8,8) RE2/Go 30 :HA#114:E X(.?){4,8}Y X1234567Y (0,9)(8,8) RE2/Go 32 :HA#115:E X(.?){5,8}Y X1234567Y (0,9)(8,8) RE2/Go 34 :HA#116:E X(.?){6,8}Y X1234567Y (0,9)(8,8) RE2/Go 36 :HA#117:E X(.?){7,8}Y X1234567Y (0,9)(8,8) RE2/Go 65 :HA#280:E (ab|a|c|bcd){0,}(d*) ababcd (0,6)(4,5)(5,6) RE2/Go 67 :HA#281:E (ab|a|c|bcd){1,}(d*) ababcd (0,6)(4,5)(5,6) RE2/Go [all …]
|
D | repetition.dat | 46 E ((..)|(.)){2} aaa (0,3)(2,3)(0,2)(2,3) RE2/Go 50 E ((..)|(.))* aaa (0,3)(2,3)(0,2)(2,3) RE2/Go 59 E ((..)|(.)){3} aaaa (0,4)(3,4)(0,2)(3,4) RE2/Go 70 E ((..)|(.)){3} aaaaa (0,5)(4,5)(2,4)(4,5) RE2/Go 73 E ((..)|(.))* aaaaa (0,5)(4,5)(2,4)(4,5) RE2/Go
|
D | nullsubexpr.dat | 5 E SAME x (0,0)(?,?) RE2/Go 23 E SAME x (0,0)(?,?) RE2/Go 32 E SAME b (0,0)(?,?) RE2/Go 45 E SAME aaaaaa (0,0)(?,?) RE2/Go 48 E SAME ababab (0,0)(?,?) RE2/Go 69 E (a*)*(x) x (0,1)(?,?)(0,1) RE2/Go
|
/external/tensorflow/tensorflow/core/kernels/ |
D | regex_full_match_op.cc | 46 std::shared_ptr<RE2> regex = CachedRE2(pattern); in Compute() 56 output_flat(i) = RE2::FullMatch(input_flat(i), *regex); in Compute() 61 std::shared_ptr<RE2> CachedRE2(const string& pattern) { in CachedRE2() 69 auto regex = std::make_shared<RE2>(pattern); in CachedRE2() 80 std::shared_ptr<RE2> regex_ TF_GUARDED_BY(mu_); 93 re_ = MakeUnique<RE2>(pattern); in StaticRegexFullMatchOp() 109 output_flat(i) = RE2::FullMatch(input_flat(i), *re_); in Compute() 114 std::unique_ptr<RE2> re_;
|
D | regex_replace_op.cc | 34 Status InternalCompute(const RE2& regex, const string& rewrite, in InternalCompute() 57 RE2::GlobalReplace(&buf, regex, rewrite); in InternalCompute() 59 RE2::Replace(&buf, regex, rewrite); in InternalCompute() 82 std::shared_ptr<RE2> regex = CachedRE2(pattern); in Compute() 97 std::shared_ptr<RE2> CachedRE2(const string& pattern) { in CachedRE2() 105 auto regex = std::make_shared<RE2>(pattern); in CachedRE2() 117 std::shared_ptr<RE2> regex_ TF_GUARDED_BY(mu_); 130 re_ = MakeUnique<RE2>(pattern); in StaticRegexReplaceOp() 144 std::unique_ptr<RE2> re_;
|
/external/deqp-deps/SPIRV-Tools/test/link/ |
D | linker_fixture.h | 100 if (!RE2::FindAndConsume(&temp, "{")) return SPV_ERROR_INVALID_TEXT; 101 while (RE2::FindAndConsume(&temp, "([,}])", &x) && x[0] == ',') cnt++; 109 RE2 pattern(regex); 114 std::vector<RE2::Arg> args(cnt + 1); 115 args[0] = RE2::Arg(&common); 116 std::vector<RE2::Arg*> pargs(cnt + 1); 119 args[i + 1] = RE2::Arg(&variants[i]); 126 while (RE2::ConsumeN(&temp2, pattern, pargs.data(), cnt + 1)) { 132 RE2::Consume(&temp2, "([^{]*)", &common);
|
/external/swiftshader/third_party/SPIRV-Tools/test/link/ |
D | linker_fixture.h | 100 if (!RE2::FindAndConsume(&temp, "{")) return SPV_ERROR_INVALID_TEXT; 101 while (RE2::FindAndConsume(&temp, "([,}])", &x) && x[0] == ',') cnt++; 109 RE2 pattern(regex); 114 std::vector<RE2::Arg> args(cnt + 1); 115 args[0] = RE2::Arg(&common); 116 std::vector<RE2::Arg*> pargs(cnt + 1); 119 args[i + 1] = RE2::Arg(&variants[i]); 126 while (RE2::ConsumeN(&temp2, pattern, pargs.data(), cnt + 1)) { 132 RE2::Consume(&temp2, "([^{]*)", &common);
|
/external/rust/crates/grpcio-sys/grpc/cmake/modules/ |
D | Findre2.cmake | 17 message(STATUS "Found RE2 via CMake.") 24 # set_property() calls; then we can simply alias PkgConfig::RE2 as re2::re2. 26 pkg_check_modules(RE2 QUIET re2) 50 message(STATUS "Found RE2 via pkg-config.") 55 message(FATAL_ERROR "Failed to find RE2.") 57 message(WARNING "Failed to find RE2.")
|
/external/rust/crates/grpcio-sys/grpc/third_party/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, 25 Unless otherwise noted, the RE2 source files are distributed 28 RE2's native language is C++. 35 A Perl wrapper is at https://github.com/dgl/re-engine-RE2/ and on CPAN (cpan.org).
|
/external/rust/crates/grpcio-sys/grpc/third_party/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>
|