Lines Matching refs:oldLength
1079 int32_t oldLength, in findAndReplace() argument
1089 oldText.pinIndices(oldStart, oldLength); in findAndReplace()
1092 if(oldLength == 0) { in findAndReplace()
1096 while(length > 0 && length >= oldLength) { in findAndReplace()
1097 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace()
1103 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1104 length -= pos + oldLength - start; in findAndReplace()
1304 int32_t oldLength = this->length(); in doReplace() local
1313 setLength(oldLength - length); in doReplace()
1317 if(length >= (oldLength - start)) { in doReplace()
1337 if(start >= oldLength) { in doReplace()
1341 newLength = oldLength + srcLength; in doReplace()
1351 if(srcChars + srcStart != oldArray + start || start > oldLength) { in doReplace()
1352 us_arrayCopy(srcChars, srcStart, oldArray, oldLength, srcLength); in doReplace()
1358 start = oldLength; in doReplace()
1365 newLength = oldLength - length + srcLength; in doReplace()
1375 u_memcpy(oldStackBuffer, fUnion.fStackBuffer, oldLength); in doReplace()
1397 oldLength - (start + length)); in doReplace()
1402 oldLength - (start + length)); in doReplace()
1513 int32_t oldLength = length(); in padLeading() local
1514 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padLeading()
1519 int32_t start = targetLength - oldLength; in padLeading()
1520 us_arrayCopy(array, 0, array, start, oldLength); in padLeading()
1535 int32_t oldLength = length(); in padTrailing() local
1536 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padTrailing()
1542 while(--length >= oldLength) { in padTrailing()
1743 int32_t oldLength = str.length(); in getAppendBuffer() local
1744 if(str.cloneArrayIfNeeded(oldLength + minCapacity, oldLength + desiredCapacityHint)) { in getAppendBuffer()
1745 *resultCapacity = str.getCapacity() - oldLength; in getAppendBuffer()
1746 return str.getArrayStart() + oldLength; in getAppendBuffer()