Lines Matching refs:cap
187 int32_t cap; member in VArray
191 VArray() : buf(NULL), cap(0), size(0), deleter(NULL) {} in VArray()
193 VArray(Fn_Deleter del) : buf(NULL), cap(0), size(0), deleter(del) {} in VArray()
210 if (size == cap) { in add()
211 if (cap == 0) { in add()
212 cap = 1; in add()
213 } else if (cap < 256) { in add()
214 cap *= 2; in add()
216 cap += 256; in add()
219 buf = (void**)uprv_malloc(cap * sizeof(void*)); in add()
221 buf = (void**)uprv_realloc(buf, cap * sizeof(void*)); in add()
229 size_t count = (cap - size) * sizeof(void*); in add()
239 cap = 0; in release()
969 int32_t cap = name.length() + 1; in getRuleSetDisplayNameLocale() local
971 if (cap > 64) { in getRuleSetDisplayNameLocale()
972 bp = (char *)uprv_malloc(cap); in getRuleSetDisplayNameLocale()
978 name.extract(0, name.length(), bp, cap, UnicodeString::kInvariant); in getRuleSetDisplayNameLocale()