Lines Matching refs:newCap
344 int32_t newCap = capacity * 2; in ensureCapacityX() local
345 if (newCap < minimumCapacity) { in ensureCapacityX()
346 newCap = minimumCapacity; in ensureCapacityX()
348 if (newCap > (int32_t)(INT32_MAX / sizeof(UElement))) { // integer overflow check in ensureCapacityX()
353 UElement* newElems = (UElement *)uprv_realloc(elements, sizeof(UElement)*newCap); in ensureCapacityX()
360 capacity = newCap; in ensureCapacityX()
379 int32_t newCap = capacity * 2; in ensureCapacity() local
380 if (newCap < minimumCapacity) { in ensureCapacity()
381 newCap = minimumCapacity; in ensureCapacity()
383 if (newCap > (int32_t)(INT32_MAX / sizeof(UElement))) { // integer overflow check in ensureCapacity()
388 UElement* newElems = (UElement *)uprv_realloc(elements, sizeof(UElement)*newCap); in ensureCapacity()
395 capacity = newCap; in ensureCapacity()