Home | History | Annotate | Download | only in i18n

Lines Matching full:capacity

389  * Allocate subformats[] to at least the given capacity and return
395 UBool MessageFormat::allocateSubformats(int32_t capacity) {
397 subformats = (Subformat*) uprv_malloc(sizeof(*subformats) * capacity);
398 subformatCapacity = capacity;
404 } else if (subformatCapacity < capacity) {
405 if (capacity < 2*subformatCapacity) {
406 capacity = 2*subformatCapacity;
409 uprv_realloc(subformats, sizeof(*subformats) * capacity);
414 subformatCapacity = capacity;
420 * Allocate argTypes[] to at least the given capacity and return
426 UBool MessageFormat::allocateArgTypes(int32_t capacity) {
428 argTypes = (Formattable::Type*) uprv_malloc(sizeof(*argTypes) * capacity);
430 argTypeCapacity = capacity;
435 for (int32_t i=0; i<capacity; ++i) {
438 } else if (argTypeCapacity < capacity) {
439 if (capacity < 2*argTypeCapacity) {
440 capacity = 2*argTypeCapacity;
443 uprv_realloc(argTypes, sizeof(*argTypes) * capacity);
447 for (int32_t i=argTypeCapacity; i<capacity; ++i) {
451 argTypeCapacity = capacity;