Lines Matching refs:initialCapacity
35 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
41 _init(initialCapacity, status); in UVector64()
46 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
48 if (initialCapacity < 1) { in _init()
49 initialCapacity = DEFAULT_CAPACITY; in _init()
51 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
52 initialCapacity = maxCapacity; in _init()
54 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
55 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
57 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
61 capacity = initialCapacity; in _init()