Searched refs:otherLen (Results 1 – 2 of 2) sorted by relevance
/system/core/libutils/ |
D | String16.cpp | 219 const size_t otherLen = other.size(); in append() local 223 } else if (otherLen == 0) { in append() 228 ->editResize((myLen+otherLen+1)*sizeof(char16_t)); in append() 231 memcpy(str+myLen, other, (otherLen+1)*sizeof(char16_t)); in append() 238 status_t String16::append(const char16_t* chrs, size_t otherLen) in append() argument 242 setTo(chrs, otherLen); in append() 244 } else if (otherLen == 0) { in append() 249 ->editResize((myLen+otherLen+1)*sizeof(char16_t)); in append() 252 memcpy(str+myLen, chrs, otherLen*sizeof(char16_t)); in append() 253 str[myLen+otherLen] = 0; in append()
|
D | String8.cpp | 298 const size_t otherLen = other.bytes(); in append() local 302 } else if (otherLen == 0) { in append() 306 return real_append(other.string(), otherLen); in append() 314 status_t String8::append(const char* other, size_t otherLen) in append() argument 317 return setTo(other, otherLen); in append() 318 } else if (otherLen == 0) { in append() 322 return real_append(other, otherLen); in append() 361 status_t String8::real_append(const char* other, size_t otherLen) in real_append() argument 366 ->editResize(myLen+otherLen+1); in real_append() 371 memcpy(str, other, otherLen); in real_append() [all …]
|