Searched refs:FindAndConsume (Results 1 - 9 of 9) sorted by relevance

/external/regex-re2/re2/testing/
H A Dre2_test.cc267 TEST(RE2, FindAndConsume) {
276 CHECK(RE2::FindAndConsume(&input, r, &word));
278 CHECK(RE2::FindAndConsume(&input, r, &word));
280 CHECK(RE2::FindAndConsume(&input, r, &word));
282 CHECK(! RE2::FindAndConsume(&input, r, &word));
284 // Check that FindAndConsume works without any submatches.
288 CHECK(RE2::FindAndConsume(&input, "aaa"));
1152 EXPECT_TRUE(RE2::FindAndConsume(&sp, "(?i)([wand]{5})", &result));
H A Dregexp_benchmark.cc265 // Benchmark: FindAndConsume
266 void FindAndConsume(int iters, int nbytes) { function in namespace:re2
276 CHECK(RE2::FindAndConsume(&t, re, &u));
282 BENCHMARK_RANGE(FindAndConsume, 8, 16<<20)->ThreadRange(1, NumCPUs());
/external/pcre/dist/
H A Dpcrecpp_unittest.cc398 printf("Testing FindAndConsume\n");
406 CHECK(r.FindAndConsume(&input, &word));
408 CHECK(r.FindAndConsume(&input, &word));
410 CHECK(r.FindAndConsume(&input, &word));
412 CHECK(! r.FindAndConsume(&input, &word));
H A Dpcrecpp.h278 // The "FindAndConsume" operation is similar to "Consume" but does not
281 // pcrecpp::RE("(\\w+)").FindAndConsume(&input, &word)
589 bool FindAndConsume(StringPiece* input,
H A Dpcrecpp.cc284 bool RE::FindAndConsume(StringPiece* input, function in class:pcrecpp::RE
/external/regex-re2/re2/
H A Dre2.h140 // The "FindAndConsume" operation is similar to "Consume" but does not
143 // RE2::FindAndConsume(&input, "(\\w+)", &word)
350 // "input". For example, "FindAndConsume(s, "(\\w+)", &word)" finds the next
355 bool, StringPiece*, const RE2&, Arg, RE2::FindAndConsumeN> FindAndConsume; member in class:re2::RE2
H A Dre2.cc32 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::FindAndConsumeN> RE2::FindAndConsume; member in class:re2::RE2
/external/regex-re2/util/
H A Dpcre.h140 // The "FindAndConsume" operation is similar to "Consume" but does not
143 // PCRE::FindAndConsume(&input, "(\\w+)", &word)
352 // "input". For example, "FindAndConsume(s, "(\\w+)", &word)" finds the next
374 static const FindAndConsumeFunctor FindAndConsume; member in class:re2::PCRE
H A Dpcre.cc46 const PCRE::FindAndConsumeFunctor PCRE::FindAndConsume = { }; member in class:re2::PCRE

Completed in 147 milliseconds