Searched refs:otherLen (Results 1 – 2 of 2) sorted by relevance
/system/core/libutils/ |
D | String16.cpp | 224 const size_t otherLen = other.size(); in append() local 228 } else if (otherLen == 0) { in append() 233 ->editResize((myLen+otherLen+1)*sizeof(char16_t)); in append() 236 memcpy(str+myLen, other, (otherLen+1)*sizeof(char16_t)); in append() 243 status_t String16::append(const char16_t* chrs, size_t otherLen) in append() argument 247 setTo(chrs, otherLen); in append() 249 } else if (otherLen == 0) { in append() 254 ->editResize((myLen+otherLen+1)*sizeof(char16_t)); in append() 257 memcpy(str+myLen, chrs, otherLen*sizeof(char16_t)); in append() 258 str[myLen+otherLen] = 0; in append()
|
D | String8.cpp | 300 const size_t otherLen = other.bytes(); in append() local 304 } else if (otherLen == 0) { in append() 308 return real_append(other.string(), otherLen); in append() 316 status_t String8::append(const char* other, size_t otherLen) in append() argument 319 return setTo(other, otherLen); in append() 320 } else if (otherLen == 0) { in append() 324 return real_append(other, otherLen); in append() 363 status_t String8::real_append(const char* other, size_t otherLen) in real_append() argument 368 ->editResize(myLen+otherLen+1); in real_append() 373 memcpy(str, other, otherLen); in real_append() [all …]
|