Lines Matching refs:Taken
984 StringRef Taken = Test.take_front(5);
985 EXPECT_EQ(Taken, "Strin");
987 Taken = Test.take_back(5);
988 EXPECT_EQ(Taken, ":Take");
990 Taken = Test.take_front(Test.size());
991 EXPECT_EQ(Taken, Test);
993 Taken = Test.take_back(Test.size());
994 EXPECT_EQ(Taken, Test);
996 Taken = Test.take_front(0);
997 EXPECT_TRUE(Taken.empty());
999 Taken = Test.take_back(0);
1000 EXPECT_TRUE(Taken.empty());
1022 StringRef Taken = Test.take_while([](char c) { return ::isdigit(c); });
1023 EXPECT_EQ("", Taken);
1025 Taken = Test.take_until([](char c) { return ::isdigit(c); });
1026 EXPECT_EQ("String With ", Taken);
1028 Taken = Test.take_while([](char c) { return true; });
1029 EXPECT_EQ(Test, Taken);
1031 Taken = Test.take_until([](char c) { return true; });
1032 EXPECT_EQ("", Taken);
1035 Taken = Test.take_while([](char c) { return true; });
1036 EXPECT_EQ("", Taken);
1042 StringRef Taken = Test.drop_while([](char c) { return ::isdigit(c); });
1043 EXPECT_EQ(Test, Taken);
1045 Taken = Test.drop_until([](char c) { return ::isdigit(c); });
1046 EXPECT_EQ("1 Number", Taken);
1048 Taken = Test.drop_while([](char c) { return true; });
1049 EXPECT_EQ("", Taken);
1051 Taken = Test.drop_until([](char c) { return true; });
1052 EXPECT_EQ(Test, Taken);
1055 Taken = EmptyString.drop_while([](char c) { return true; });
1056 EXPECT_EQ("", Taken);