Searched refs:ConsumeSuffix (Results 1 – 3 of 3) sorted by relevance
70 TEST(Strip, ConsumeSuffix) { in TEST() argument72 EXPECT_FALSE(absl::ConsumeSuffix(&input, "abcdefg")); in TEST()75 EXPECT_TRUE(absl::ConsumeSuffix(&input, "")); in TEST()78 EXPECT_TRUE(absl::ConsumeSuffix(&input, "def")); in TEST()82 EXPECT_FALSE(absl::ConsumeSuffix(&input, "abcdeg")); in TEST()85 EXPECT_TRUE(absl::ConsumeSuffix(&input, "f")); in TEST()88 EXPECT_TRUE(absl::ConsumeSuffix(&input, "abcde")); in TEST()
60 inline bool ConsumeSuffix(absl::string_view* str, absl::string_view expected) { in ConsumeSuffix() function
61 absl::ConsumeSuffix(&program_name_ref, ".exe"); in ContainsHelpshortFlags()