Searched refs:ConsumeN (Results 1 – 3 of 3) sorted by relevance
/external/regex-re2/re2/ |
D | re2.h | 343 static bool ConsumeN(StringPiece* input, const RE2& pattern, // 3..16 args 346 bool, StringPiece*, const RE2&, Arg, RE2::ConsumeN> Consume;
|
D | re2.cc | 31 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/ |
D | re2_test.cc | 243 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()
|