Searched refs:new_size (Results 1 – 6 of 6) sorted by relevance
105 void String::Resize(size_t new_size) { in Resize() argument106 if (new_size > capacity_) { in Resize()108 while (new_capacity < new_size) in Resize()113 str_[new_size] = '\0'; in Resize()114 size_ = new_size; in Resize()
184 void Resize(size_t new_size);
160 size_t new_size = max<size_t>(static_cast<size_t>(__alsize_), 2*old_size); in overflow() local161 if (new_size == 0) in overflow()162 new_size = __default_alsize; in overflow()165 buf = static_cast<char*>(__palloc_(new_size)); in overflow()167 buf = new char[new_size]; in overflow()
123 ptrdiff_t new_size = (max)(2 * old_size, ptrdiff_t(1)); in overflow() local125 char* buf = _M_alloc(new_size); in overflow()137 setp(buf, buf + new_size); in overflow()
369 void resize(size_type new_size) { resize(new_size, _STLP_DEFAULT_CONSTRUCTED(_Tp)); } in resize() argument
682 void resize(size_type new_size, const value_type& __x = _Tp());684 void resize(size_type new_size, const value_type& __x);688 void resize(size_type new_size) { resize(new_size, _STLP_DEFAULT_CONSTRUCTED(_Tp)); }