Lines Matching refs:buffer_
19 buffer_ = Vector<char>::New(size); in SimpleStringBuilder()
30 DCHECK(!is_finalized() && position_ + n <= buffer_.length()); in AddSubstring()
32 MemCopy(&buffer_[position_], s, n * kCharSize); in AddSubstring()
56 buffer_[position_ - i] = '0' + static_cast<char>(number % 10); in AddDecimalInteger()
63 DCHECK(!is_finalized() && position_ <= buffer_.length()); in Finalize()
65 if (position_ == buffer_.length()) { in Finalize()
68 for (int i = 3; i > 0 && position_ > i; --i) buffer_[position_ - i] = '.'; in Finalize()
70 buffer_[position_] = '\0'; in Finalize()
73 DCHECK(strlen(buffer_.start()) == static_cast<size_t>(position_)); in Finalize()
76 return buffer_.start(); in Finalize()
351 DCHECK(!is_finalized() && position_ <= buffer_.length()); in AddFormattedList()
352 int n = VSNPrintF(buffer_ + position_, format, list); in AddFormattedList()
353 if (n < 0 || n >= (buffer_.length() - position_)) { in AddFormattedList()
354 position_ = buffer_.length(); in AddFormattedList()