Home
last modified time | relevance | path

Searched refs:StartsWith (Results 1 – 4 of 4) sorted by relevance

/system/core/base/
Dstrings_test.cpp125 ASSERT_FALSE(android::base::StartsWith("", "foo")); in TEST()
126 ASSERT_TRUE(android::base::StartsWith("", "")); in TEST()
130 ASSERT_TRUE(android::base::StartsWith("foo", "")); in TEST()
131 ASSERT_TRUE(android::base::StartsWith("foo", "f")); in TEST()
132 ASSERT_TRUE(android::base::StartsWith("foo", "fo")); in TEST()
133 ASSERT_TRUE(android::base::StartsWith("foo", "foo")); in TEST()
137 ASSERT_FALSE(android::base::StartsWith("foo", "foobar")); in TEST()
141 ASSERT_FALSE(android::base::StartsWith("foobar", "oba")); in TEST()
142 ASSERT_FALSE(android::base::StartsWith("foobar", "bar")); in TEST()
Dstrings.cpp102 bool StartsWith(const std::string& s, const char* prefix) { in StartsWith() function
Dlogging.cpp152 if (spec.size() == 3 && StartsWith(spec, "*:")) { in InitLogging()
/system/core/base/include/base/
Dstrings.h42 bool StartsWith(const std::string& s, const char* prefix);