Searched refs:otherLen (Results 1 – 2 of 2) sorted by relevance
/system/core/libutils/ |
D | String16.cpp | 193 status_t String16::append(const char16_t* chrs, size_t otherLen) { in append() argument 196 if (myLen == 0) return setTo(chrs, otherLen); in append() 198 if (otherLen == 0) return OK; in append() 201 if (__builtin_add_overflow(size, otherLen, &size) || in append() 209 memcpy(str + myLen, chrs, otherLen * sizeof(char16_t)); in append() 210 str[myLen + otherLen] = 0; in append() 219 status_t String16::insert(size_t pos, const char16_t* chrs, size_t otherLen) { in insert() argument 222 if (myLen == 0) return setTo(chrs, otherLen); in insert() 224 if (otherLen == 0) return OK; in insert() 229 if (__builtin_add_overflow(size, otherLen, &size) || in insert() [all …]
|
D | String8.cpp | 261 const size_t otherLen = other.bytes(); in append() local 265 } else if (otherLen == 0) { in append() 269 return real_append(other.string(), otherLen); in append() 277 status_t String8::append(const char* other, size_t otherLen) in append() argument 280 return setTo(other, otherLen); in append() 281 } else if (otherLen == 0) { in append() 285 return real_append(other, otherLen); in append() 330 status_t String8::real_append(const char* other, size_t otherLen) { in real_append() argument 335 if (__builtin_add_overflow(myLen, otherLen, &newLen) || in real_append() 344 memcpy(str, other, otherLen); in real_append() [all …]
|