• Home
  • Raw
  • Download

Lines Matching refs:oldLength

1165                   int32_t oldLength,  in findAndReplace()  argument
1175 oldText.pinIndices(oldStart, oldLength); in findAndReplace()
1178 if(oldLength == 0) { in findAndReplace()
1182 while(length > 0 && length >= oldLength) { in findAndReplace()
1183 int32_t pos = indexOf(oldText, oldStart, oldLength, start, length); in findAndReplace()
1189 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1190 length -= pos + oldLength - start; in findAndReplace()
1422 int32_t oldLength = this->length(); in doReplace() local
1431 setLength(oldLength - length); in doReplace()
1435 if(length >= (oldLength - start)) { in doReplace()
1444 if(start == oldLength) { in doReplace()
1465 int32_t newLength = oldLength - length; in doReplace()
1476 srcChars < oldArray + oldLength) { in doReplace()
1492 u_memcpy(oldStackBuffer, oldArray, oldLength); in doReplace()
1512 oldLength - (start + length)); in doReplace()
1517 oldLength - (start + length)); in doReplace()
1565 int32_t oldLength = length(); in doAppend() local
1567 if (uprv_add32_overflow(oldLength, srcLength, &newLength)) { in doAppend()
1576 srcChars < oldArray + oldLength) { in doAppend()
1597 if(srcChars != newArray + oldLength) { in doAppend()
1598 us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength); in doAppend()
1699 int32_t oldLength = length(); in padLeading() local
1700 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padLeading()
1705 int32_t start = targetLength - oldLength; in padLeading()
1706 us_arrayCopy(array, 0, array, start, oldLength); in padLeading()
1721 int32_t oldLength = length(); in padTrailing() local
1722 if(oldLength >= targetLength || !cloneArrayIfNeeded(targetLength)) { in padTrailing()
1728 while(--length >= oldLength) { in padTrailing()
1830 int32_t oldLength = length(); in cloneArrayIfNeeded() local
1838 us_arrayCopy(fUnion.fStackFields.fBuffer, 0, oldStackBuffer, 0, oldLength); in cloneArrayIfNeeded()
1855 int32_t minLength = oldLength; in cloneArrayIfNeeded()
1935 int32_t oldLength = str.length(); in getAppendBuffer() local
1936 if(minCapacity <= (kMaxCapacity - oldLength) && in getAppendBuffer()
1937 desiredCapacityHint <= (kMaxCapacity - oldLength) && in getAppendBuffer()
1938 str.cloneArrayIfNeeded(oldLength + minCapacity, oldLength + desiredCapacityHint)) { in getAppendBuffer()
1939 *resultCapacity = str.getCapacity() - oldLength; in getAppendBuffer()
1940 return str.getArrayStart() + oldLength; in getAppendBuffer()