Home
last modified time | relevance | path

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

/system/core/libutils/
DString8.cpp124 : mString(getEmptyString()) in String8()
129 : mString(o.mString) in String8()
131 SharedBuffer::bufferFromData(mString)->acquire(); in String8()
135 : mString(allocFromUTF8(o, strlen(o))) in String8()
137 if (mString == nullptr) { in String8()
138 mString = getEmptyString(); in String8()
143 : mString(allocFromUTF8(o, len)) in String8()
145 if (mString == nullptr) { in String8()
146 mString = getEmptyString(); in String8()
151 : mString(allocFromUTF16(o.string(), o.size())) in String8()
[all …]
DString16.cpp89 : mString(getEmptyString()) in String16()
94 : mString(o.mString) in String16()
100 : mString(getEmptyString()) in String16()
105 String16::String16(const char16_t* o) : mString(allocFromUTF16(o, strlen16(o))) {} in String16()
107 String16::String16(const char16_t* o, size_t len) : mString(allocFromUTF16(o, len)) {} in String16()
110 : mString(allocFromUTF8(o.string(), o.size())) in String16()
115 : mString(allocFromUTF8(o, strlen(o))) in String16()
120 : mString(allocFromUTF8(o, len)) in String16()
134 return SharedBuffer::sizeFromData(mString) / sizeof(char16_t) - 1; in size()
141 mString = other.mString; in setTo()
[all …]
/system/core/libutils/include/utils/
DString16.h142 const char16_t* mString; variable
178 explicit constexpr String16(const StaticData<N>& s) : mString(s.data) {} in String16()
182 explicit constexpr String16(const StaticString16<N>& s) : mString(s.mString) {} in String16()
245 return mString; in string()
274 return strzcmp16(mString, size(), other.mString, other.size()); in compare()
279 return strzcmp16(mString, size(), other.mString, other.size()) < 0;
284 return strzcmp16(mString, size(), other.mString, other.size()) <= 0;
289 return strzcmp16(mString, size(), other.mString, other.size()) == 0;
294 return strzcmp16(mString, size(), other.mString, other.size()) != 0;
299 return strzcmp16(mString, size(), other.mString, other.size()) >= 0;
[all …]
DString8.h229 const char* mString; variable
260 return mString; in c_str()
264 return mString; in string()
332 return strcmp(mString, other.mString); in compare()
337 return strcmp(mString, other.mString) < 0;
342 return strcmp(mString, other.mString) <= 0;
347 return strcmp(mString, other.mString) == 0;
352 return strcmp(mString, other.mString) != 0;
357 return strcmp(mString, other.mString) >= 0;
362 return strcmp(mString, other.mString) > 0;
[all …]