Home
last modified time | relevance | path

Searched refs:newCap (Results 1 – 5 of 5) sorted by relevance

/external/icu4c/common/
Duvectr64.cpp120 int32_t newCap = capacity * 2; in expandCapacity() local
121 if (newCap < minimumCapacity) { in expandCapacity()
122 newCap = minimumCapacity; in expandCapacity()
124 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()
125 newCap = maxCapacity; in expandCapacity()
127 int64_t* newElems = (int64_t *)uprv_realloc(elements, sizeof(int64_t)*newCap); in expandCapacity()
134 capacity = newCap; in expandCapacity()
Duvectr32.cpp202 int32_t newCap = capacity * 2; in expandCapacity() local
203 if (newCap < minimumCapacity) { in expandCapacity()
204 newCap = minimumCapacity; in expandCapacity()
206 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()
207 newCap = maxCapacity; in expandCapacity()
209 int32_t* newElems = (int32_t *)uprv_realloc(elements, sizeof(int32_t)*newCap); in expandCapacity()
216 capacity = newCap; in expandCapacity()
Duvector.cpp330 int32_t newCap = capacity * 2; in ensureCapacity() local
331 if (newCap < minimumCapacity) { in ensureCapacity()
332 newCap = minimumCapacity; in ensureCapacity()
334 UHashTok* newElems = (UHashTok *)uprv_realloc(elements, sizeof(UHashTok)*newCap); in ensureCapacity()
341 capacity = newCap; in ensureCapacity()
/external/chromium/third_party/icu/source/common/
Duvectr32.cpp202 int32_t newCap = capacity * 2; in expandCapacity() local
203 if (newCap < minimumCapacity) { in expandCapacity()
204 newCap = minimumCapacity; in expandCapacity()
206 if (maxCapacity > 0 && newCap > maxCapacity) { in expandCapacity()
207 newCap = maxCapacity; in expandCapacity()
209 int32_t* newElems = (int32_t *)uprv_realloc(elements, sizeof(int32_t)*newCap); in expandCapacity()
216 capacity = newCap; in expandCapacity()
Duvector.cpp330 int32_t newCap = capacity * 2; in ensureCapacity() local
331 if (newCap < minimumCapacity) { in ensureCapacity()
332 newCap = minimumCapacity; in ensureCapacity()
334 UHashTok* newElems = (UHashTok *)uprv_realloc(elements, sizeof(UHashTok)*newCap); in ensureCapacity()
341 capacity = newCap; in ensureCapacity()