Searched refs:remove_prefix (Results 1 - 3 of 3) sorted by relevance

/system/core/healthd/
H A DAnimationParser.h27 bool remove_prefix(const std::string& str, const char* prefix, const char** rest);
H A DAnimationParser.cpp40 bool remove_prefix(const std::string& line, const char* prefix, const char** rest) { function in namespace:android
97 } else if (remove_prefix(line, animation_prefix, &rest)) {
107 } else if (remove_prefix(line, fail_prefix, &rest)) {
109 } else if (remove_prefix(line, clock_prefix, &rest)) {
114 } else if (remove_prefix(line, percent_prefix, &rest)) {
/system/core/healthd/tests/
H A DAnimationParser_test.cpp38 EXPECT_FALSE(remove_prefix(TEST_STRING, "def", &rest));
40 EXPECT_FALSE(remove_prefix(TEST_STRING, TEST_STRING, &rest));
42 EXPECT_TRUE(remove_prefix(TEST_STRING, "abc", &rest));
45 EXPECT_TRUE(remove_prefix(" abcdef", "abc", &rest));

Completed in 63 milliseconds