Lines Matching defs:capacity
340 * Allocate argTypes[] to at least the given capacity and return
346 UBool MessageFormat::allocateArgTypes(int32_t capacity, UErrorCode& status) {
350 if (argTypeCapacity >= capacity) {
353 if (capacity < DEFAULT_INITIAL_CAPACITY) {
354 capacity = DEFAULT_INITIAL_CAPACITY;
355 } else if (capacity < 2*argTypeCapacity) {
356 capacity = 2*argTypeCapacity;
359 uprv_realloc(argTypes, sizeof(*argTypes) * capacity);
365 argTypeCapacity = capacity;
815 // Get total required capacity first (it's refreshed on each call).