Lines Matching refs:str
24 std::vector<android::String8>* StringUtil::split(const android::String8& str, char delimiter) in split() argument
28 for (unsigned int i = 0; i < str.length(); i++) { in split()
29 if (str[i] == delimiter) { in split()
31 tokens->push_back(substr(str, lastTokenEnd, i - lastTokenEnd)); in split()
36 if (lastTokenEnd < str.length()) { in split()
37 tokens->push_back(substr(str, lastTokenEnd, str.length() - lastTokenEnd)); in split()
42 android::String8 StringUtil::substr(const android::String8& str, size_t pos, size_t n) in substr() argument
44 size_t l = str.length(); in substr()
53 android::String8 result(str.string() + pos, n); in substr()
57 int StringUtil::compare(const android::String8& str, const char* other) in compare() argument
59 return strcmp(str.string(), other); in compare()
62 bool StringUtil::endsWith(const android::String8& str, const char* other) in endsWith() argument
64 size_t l1 = str.length(); in endsWith()
66 const char* data = str.string(); in endsWith()