Lines Matching refs:position_
186 : buffer_(buffer, size), position_(0) { }
195 return position_;
203 position_ = position;
207 void Reset() { position_ = 0; }
214 ASSERT(!is_finalized() && position_ < buffer_.length());
215 buffer_[position_++] = c;
227 ASSERT(!is_finalized() && position_ + n < buffer_.length());
229 memcpy(&buffer_[position_], s, n * kCharSize);
230 position_ += n;
244 ASSERT(!is_finalized() && position_ < buffer_.length());
245 buffer_[position_] = '\0';
248 ASSERT(strlen(buffer_.start()) == static_cast<size_t>(position_));
249 position_ = -1;
256 int position_;
258 bool is_finalized() const { return position_ < 0; }