Home | History | Annotate | Download | only in strings

Lines Matching refs:EndsWith

833 TEST(StringUtilTest, EndsWith) {
834 EXPECT_TRUE(EndsWith(L"Foo.plugin", L".plugin", true));
835 EXPECT_FALSE(EndsWith(L"Foo.Plugin", L".plugin", true));
836 EXPECT_TRUE(EndsWith(L"Foo.plugin", L".plugin", false));
837 EXPECT_TRUE(EndsWith(L"Foo.Plugin", L".plugin", false));
838 EXPECT_FALSE(EndsWith(L".plug", L".plugin", true));
839 EXPECT_FALSE(EndsWith(L".plug", L".plugin", false));
840 EXPECT_FALSE(EndsWith(L"Foo.plugin Bar", L".plugin", true));
841 EXPECT_FALSE(EndsWith(L"Foo.plugin Bar", L".plugin", false));
842 EXPECT_FALSE(EndsWith(std::wstring(), L".plugin", false));
843 EXPECT_FALSE(EndsWith(std::wstring(), L".plugin", true));
844 EXPECT_TRUE(EndsWith(L"Foo.plugin", std::wstring(), false));
845 EXPECT_TRUE(EndsWith(L"Foo.plugin", std::wstring(), true));
846 EXPECT_TRUE(EndsWith(L".plugin", L".plugin", false));
847 EXPECT_TRUE(EndsWith(L".plugin", L".plugin", true));
848 EXPECT_TRUE(EndsWith(std::wstring(), std::wstring(), false));
849 EXPECT_TRUE(EndsWith(std::wstring(), std::wstring(), true));