Home
last modified time | relevance | path

Searched refs:myLen (Results 1 – 2 of 2) sorted by relevance

/system/core/libutils/
DString16.cpp194 const size_t myLen = size(); in append() local
196 if (myLen == 0) return setTo(chrs, otherLen); in append()
200 size_t size = myLen; in append()
209 memcpy(str + myLen, chrs, otherLen * sizeof(char16_t)); in append()
210 str[myLen + otherLen] = 0; in append()
220 const size_t myLen = size(); in insert() local
222 if (myLen == 0) return setTo(chrs, otherLen); in insert()
226 if (pos > myLen) pos = myLen; in insert()
228 size_t size = myLen; in insert()
237 if (pos < myLen) memmove(str + pos + otherLen, str + pos, (myLen - pos) * sizeof(char16_t)); in insert()
[all …]
DString8.cpp331 const size_t myLen = bytes(); in real_append() local
335 if (__builtin_add_overflow(myLen, otherLen, &newLen) || in real_append()
343 str += myLen; in real_append()