Searched refs:new_capacity (Results 1 – 2 of 2) sorted by relevance
107 size_t new_capacity = capacity_; in Resize() local108 while (new_capacity < new_size) in Resize()109 new_capacity += (new_capacity >> 1) + 8; in Resize()111 Reserve(new_capacity); in Resize()117 void String::Reserve(size_t new_capacity) { in Reserve() argument118 str_ = reinterpret_cast<char*>(::realloc(str_, new_capacity + 1)); in Reserve()119 if (new_capacity > capacity_) in Reserve()120 ::memset(str_ + capacity_, '\0', new_capacity - capacity_); in Reserve()121 capacity_ = new_capacity; in Reserve()
187 void Reserve(size_t new_capacity);