Lines Matching refs:initialCapacity
33 UVector64::UVector64(int32_t initialCapacity, UErrorCode &status) : in UVector64() argument
39 _init(initialCapacity, status); in UVector64()
44 void UVector64::_init(int32_t initialCapacity, UErrorCode &status) { in _init() argument
46 if (initialCapacity < 1) { in _init()
47 initialCapacity = DEFAULT_CAPACITY; in _init()
49 if (maxCapacity>0 && maxCapacity<initialCapacity) { in _init()
50 initialCapacity = maxCapacity; in _init()
52 if (initialCapacity > (int32_t)(INT32_MAX / sizeof(int64_t))) { in _init()
53 initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity); in _init()
55 elements = (int64_t *)uprv_malloc(sizeof(int64_t)*initialCapacity); in _init()
59 capacity = initialCapacity; in _init()