Lines Matching refs:initialCapacity
38 UVector32::UVector32(int32_t initialCapacity, UErrorCode &status) : in UVector32() argument
44 _init(initialCapacity, status); in UVector32()
49 void UVector32::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
51 if (initialCapacity < 1) { in _init()
52 initialCapacity = DEFAULT_CAPACITY; in _init()
54 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
55 initialCapacity = maxCapacity; in _init()
57 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int32_t))) { in _init()
58 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
60 elements = (int32_t *)uprv_malloc(sizeof(int32_t)*initialCapacity); in _init()
64 capacity = initialCapacity; in _init()