Home | History | Annotate | Download | only in src

Lines Matching refs:str

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