Searched refs:lengthToReplace (Results 1 – 1 of 1) sorted by relevance
1581 PassRefPtr<StringImpl> StringImpl::replace(unsigned position, unsigned lengthToReplace, StringImpl*… in replace() argument1584 lengthToReplace = min(lengthToReplace, length() - position); in replace()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()1598 memcpy(data + position + lengthToInsert, characters8() + position + lengthToReplace, in replace()1599 (length() - position - lengthToReplace) * sizeof(LChar)); in replace()1604 createUninitialized(length() - lengthToReplace + lengthToInsert, data); in replace()1618 for (unsigned i = 0; i < length() - position - lengthToReplace; ++i) in replace()1619 data[i + position + lengthToInsert] = characters8()[i + position + lengthToReplace]; in replace()[all …]