Lines Matching refs:newCapacity
158 int32_t newCapacity; in add() local
160 newCapacity=1024; in add()
162 newCapacity=4*elementsCapacity; in add()
164 BytesTrieElement *newElements=new BytesTrieElement[newCapacity]; in add()
174 elementsCapacity=newCapacity; in add()
381 int32_t newCapacity=bytesCapacity; in ensureCapacity() local
383 newCapacity*=2; in ensureCapacity()
384 } while(newCapacity<=length); in ensureCapacity()
385 char *newBytes=static_cast<char *>(uprv_malloc(newCapacity)); in ensureCapacity()
393 uprv_memcpy(newBytes+(newCapacity-bytesLength), in ensureCapacity()
397 bytesCapacity=newCapacity; in ensureCapacity()