Home
last modified time | relevance | path

Searched refs:FindAndConsumeN (Results 1 – 3 of 3) sorted by relevance

/external/regex-re2/re2/
Dre2.h352 static bool FindAndConsumeN(StringPiece* input, const RE2& pattern,
355 bool, StringPiece*, const RE2&, Arg, RE2::FindAndConsumeN> FindAndConsume;
Dre2.cc32 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::FindAndConsumeN> RE2::FindAn…
319 bool RE2::FindAndConsumeN(StringPiece* input, const RE2& re, in FindAndConsumeN() function in re2::RE2
/external/regex-re2/re2/testing/
Dre2_test.cc292 TEST(RE2, FindAndConsumeN) { in TEST() argument
300 EXPECT_TRUE(RE2::FindAndConsumeN(&input, "(\\w+)", args, 0)); // Skips "one". in TEST()
305 EXPECT_TRUE(RE2::FindAndConsumeN(&input, "(\\w+)", args, 1)); in TEST()
311 EXPECT_TRUE(RE2::FindAndConsumeN(&input, "(\\w+)\\s*(\\d+)", args, 2)); in TEST()