Home
last modified time | relevance | path

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

/external/regex-re2/re2/
Dre2.h343 static bool ConsumeN(StringPiece* input, const RE2& pattern, // 3..16 args
346 bool, StringPiece*, const RE2&, Arg, RE2::ConsumeN> Consume;
Dre2.cc31 const VariadicFunction2<bool, StringPiece*, const RE2&, RE2::Arg, RE2::ConsumeN> RE2::Consume;
308 bool RE2::ConsumeN(StringPiece* input, const RE2& re, in ConsumeN() function in re2::RE2
/external/regex-re2/re2/testing/
Dre2_test.cc243 TEST(RE2, ConsumeN) { in TEST() argument
251 EXPECT_TRUE(RE2::ConsumeN(&input, "\\s*(\\w+)", args, 0)); // Skips "one". in TEST()
256 EXPECT_TRUE(RE2::ConsumeN(&input, "\\s*(\\w+)", args, 1)); in TEST()
262 EXPECT_TRUE(RE2::ConsumeN(&input, "\\s*(\\w+)\\s*(\\d+)", args, 2)); in TEST()