Searched refs:lengthToInsert (Results 1 - 2 of 2) sorted by relevance
/macosx-10.10.1/WTF-7600.1.24/wtf/text/ |
H A D | WTFString.cpp | 172 unsigned lengthToInsert = string.length(); local 174 if (!lengthToInsert) { 187 if (lengthToInsert > std::numeric_limits<unsigned>::max() - length()) 193 newString = StringImpl::createUninitialized(length() + lengthToInsert, data); 196 StringView(*m_impl).substring(position).getCharactersWithUpconvert(data + position + lengthToInsert); 199 newString = StringImpl::createUninitialized(length() + lengthToInsert, data); 202 StringView(*m_impl).substring(position).getCharactersWithUpconvert(data + position + lengthToInsert);
|
H A D | StringImpl.cpp | 1491 unsigned lengthToInsert = str ? str->length() : 0; local 1492 if (!lengthToReplace && !lengthToInsert) 1495 if ((length() - lengthToReplace) >= (std::numeric_limits<unsigned>::max() - lengthToInsert)) 1500 auto newImpl = createUninitialized(length() - lengthToReplace + lengthToInsert, data); 1503 memcpy(data + position, str->m_data8, lengthToInsert * sizeof(LChar)); 1504 memcpy(data + position + lengthToInsert, m_data8 + position + lengthToReplace, 1509 auto newImpl = createUninitialized(length() - lengthToReplace + lengthToInsert, data); 1517 for (unsigned i = 0; i < lengthToInsert; ++i) 1520 memcpy(data + position, str->m_data16, lengthToInsert * sizeof(UChar)); 1524 data[i + position + lengthToInsert] [all...] |
Completed in 120 milliseconds