Searched refs:lengthToInsert (Results 1 - 2 of 2) sorted by relevance
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
H A D | WTFString.cpp | 238 PassRefPtr<StringImpl> insertInternal(PassRefPtr<StringImpl> impl, const CharType* charactersToInsert, unsigned lengthToInsert, unsigned position) argument 240 if (!lengthToInsert) 245 RELEASE_ASSERT(lengthToInsert <= numeric_limits<unsigned>::max() - impl->length()); 246 RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(impl->length() + lengthToInsert, data); 253 StringImpl::copyChars(data + position, charactersToInsert, lengthToInsert); 256 StringImpl::copyChars(data + position + lengthToInsert, impl->characters8() + position, impl->length() - position); 258 StringImpl::copyChars(data + position + lengthToInsert, impl->characters16() + position, impl->length() - position); 263 void String::insert(const UChar* charactersToInsert, unsigned lengthToInsert, unsigned position) argument 266 append(charactersToInsert, lengthToInsert); 270 m_impl = insertInternal(m_impl.release(), charactersToInsert, lengthToInsert, positio 273 insert(const LChar* charactersToInsert, unsigned lengthToInsert, unsigned position) argument [all...] |
H A D | StringImpl.cpp | 1585 unsigned lengthToInsert = str ? str->length() : 0; local 1586 if (!lengthToReplace && !lengthToInsert) 1589 RELEASE_ASSERT((length() - lengthToReplace) < (numeric_limits<unsigned>::max() - lengthToInsert)); 1594 createUninitialized(length() - lengthToReplace + lengthToInsert, data); 1597 memcpy(data + position, str->characters8(), lengthToInsert * sizeof(LChar)); 1598 memcpy(data + position + lengthToInsert, characters8() + position + lengthToReplace, 1604 createUninitialized(length() - lengthToReplace + lengthToInsert, data); 1612 for (unsigned i = 0; i < lengthToInsert; ++i) 1615 memcpy(data + position, str->characters16(), lengthToInsert * sizeof(UChar)); 1619 data[i + position + lengthToInsert] [all...] |
Completed in 57 milliseconds