HomeSort by relevance Sort by last modified time
    Searched refs:lengthToInsert (Results 1 - 2 of 2) sorted by null

  /external/webkit/Source/JavaScriptCore/wtf/text/
WTFString.cpp 194 void String::insert(const UChar* charactersToInsert, unsigned lengthToInsert, unsigned position)
197 append(charactersToInsert, lengthToInsert);
203 if (!lengthToInsert)
208 if (lengthToInsert > numeric_limits<unsigned>::max() - length())
210 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(length() + lengthToInsert, data);
212 memcpy(data + position, charactersToInsert, lengthToInsert * sizeof(UChar));
213 memcpy(data + position + lengthToInsert, characters() + position, (length() - position) * sizeof(UChar));
StringImpl.cpp 801 unsigned lengthToInsert = str ? str->length() : 0;
802 if (!lengthToReplace && !lengthToInsert)
806 if ((length() - lengthToReplace) >= (numeric_limits<unsigned>::max() - lengthToInsert))
810 createUninitialized(length() - lengthToReplace + lengthToInsert, data);
813 memcpy(data + position, str->characters(), lengthToInsert * sizeof(UChar));
814 memcpy(data + position + lengthToInsert, characters() + position + lengthToReplace,

Completed in 718 milliseconds