Lines Matching refs:otherLen
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()
237 if (pos < myLen) memmove(str + pos + otherLen, str + pos, (myLen - pos) * sizeof(char16_t)); in insert()
238 memcpy(str + pos, chrs, otherLen * sizeof(char16_t)); in insert()
239 str[myLen + otherLen] = 0; in insert()