Home
last modified time | relevance | path

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

/development/vndk/tools/header-checker/src/utils/
Dstring_utils_test.cpp44 TEST(StringUtilsTest, EndsWith) { in TEST() argument
45 EXPECT_TRUE(EndsWith("abcd", "cd")); in TEST()
46 EXPECT_TRUE(EndsWith("d", "d")); in TEST()
47 EXPECT_TRUE(EndsWith("d", "")); in TEST()
48 EXPECT_TRUE(EndsWith("", "")); in TEST()
50 EXPECT_FALSE(EndsWith("cd", "abcd")); in TEST()
51 EXPECT_FALSE(EndsWith("", "cd")); in TEST()
Dstring_utils.h32 bool EndsWith(std::string_view s, std::string_view suffix);
Dstring_utils.cpp48 bool EndsWith(std::string_view s, std::string_view suffix) { in EndsWith() function