Searched refs:lengthToInsert (Results 1 – 2 of 2) sorted by relevance
/external/webkit/Source/JavaScriptCore/wtf/text/ |
D | WTFString.cpp | 194 void String::insert(const UChar* charactersToInsert, unsigned lengthToInsert, unsigned position) in insert() argument 197 append(charactersToInsert, lengthToInsert); in insert() 203 if (!lengthToInsert) in insert() 208 if (lengthToInsert > numeric_limits<unsigned>::max() - length()) in insert() 210 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(length() + lengthToInsert, data); in insert() 212 memcpy(data + position, charactersToInsert, lengthToInsert * sizeof(UChar)); in insert() 213 …memcpy(data + position + lengthToInsert, characters() + position, (length() - position) * sizeof(U… in insert()
|
D | StringImpl.cpp | 801 unsigned lengthToInsert = str ? str->length() : 0; in replace() local 802 if (!lengthToReplace && !lengthToInsert) in replace() 806 if ((length() - lengthToReplace) >= (numeric_limits<unsigned>::max() - lengthToInsert)) in replace() 810 createUninitialized(length() - lengthToReplace + lengthToInsert, data); in replace() 813 memcpy(data + position, str->characters(), lengthToInsert * sizeof(UChar)); in replace() 814 memcpy(data + position + lengthToInsert, characters() + position + lengthToReplace, in replace()
|