Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/wtf/text/
DWTFString.cpp238 …efPtr<StringImpl> impl, const CharType* charactersToInsert, unsigned lengthToInsert, unsigned posi… in insertInternal() argument
240 if (!lengthToInsert) in insertInternal()
245 RELEASE_ASSERT(lengthToInsert <= numeric_limits<unsigned>::max() - impl->length()); in insertInternal()
246 …RefPtr<StringImpl> newImpl = StringImpl::createUninitialized(impl->length() + lengthToInsert, data… in insertInternal()
253 StringImpl::copyChars(data + position, charactersToInsert, lengthToInsert); in insertInternal()
256 …StringImpl::copyChars(data + position + lengthToInsert, impl->characters8() + position, impl->leng… in insertInternal()
258 …StringImpl::copyChars(data + position + lengthToInsert, impl->characters16() + position, impl->len… in insertInternal()
263 void String::insert(const UChar* charactersToInsert, unsigned lengthToInsert, unsigned position) in insert() argument
266 append(charactersToInsert, lengthToInsert); in insert()
270 m_impl = insertInternal(m_impl.release(), charactersToInsert, lengthToInsert, position); in insert()
[all …]
DStringImpl.cpp1585 unsigned lengthToInsert = str ? str->length() : 0; in replace() local
1586 if (!lengthToReplace && !lengthToInsert) in replace()
1589 … RELEASE_ASSERT((length() - lengthToReplace) < (numeric_limits<unsigned>::max() - lengthToInsert)); in replace()
1594 createUninitialized(length() - lengthToReplace + lengthToInsert, data); in replace()
1597 memcpy(data + position, str->characters8(), lengthToInsert * sizeof(LChar)); in replace()
1598 memcpy(data + position + lengthToInsert, characters8() + position + lengthToReplace, in replace()
1604 createUninitialized(length() - lengthToReplace + lengthToInsert, data); in replace()
1612 for (unsigned i = 0; i < lengthToInsert; ++i) in replace()
1615 memcpy(data + position, str->characters16(), lengthToInsert * sizeof(UChar)); in replace()
1619 data[i + position + lengthToInsert] = characters8()[i + position + lengthToReplace]; in replace()
[all …]