• Home
  • Raw
  • Download

Lines Matching refs:newLength

358 int32_t getGrowCapacity(int32_t newLength) {  in getGrowCapacity()  argument
359 int32_t growSize = (newLength >> 2) + kGrowSize; in getGrowCapacity()
360 if(growSize <= (kMaxCapacity - newLength)) { in getGrowCapacity()
361 return newLength + growSize; in getGrowCapacity()
1169 int32_t newLength) in findAndReplace() argument
1177 newText.pinIndices(newStart, newLength); in findAndReplace()
1190 replace(pos, oldLength, newText, newStart, newLength); in findAndReplace()
1192 start = pos + newLength; in findAndReplace()
1466 int32_t newLength = oldLength - length; in doReplace() local
1467 if(srcLength > (INT32_MAX - newLength)) { in doReplace()
1471 newLength += srcLength; in doReplace()
1490 if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) { in doReplace()
1499 if(!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength), in doReplace()
1524 setLength(newLength); in doReplace()
1567 int32_t newLength = oldLength + srcLength; in doAppend() local
1584 if((newLength <= getCapacity() && isBufferWritable()) || in doAppend()
1585 cloneArrayIfNeeded(newLength, getGrowCapacity(newLength))) { in doAppend()
1597 setLength(newLength); in doAppend()
1764 UnicodeString::releaseBuffer(int32_t newLength) { in releaseBuffer() argument
1765 if(fUnion.fFields.fLengthAndFlags&kOpenGetBuffer && newLength>=-1) { in releaseBuffer()
1768 if(newLength==-1) { in releaseBuffer()
1774 newLength=(int32_t)(p-array); in releaseBuffer()
1775 } else if(newLength>capacity) { in releaseBuffer()
1776 newLength=capacity; in releaseBuffer()
1778 setLength(newLength); in releaseBuffer()