Home | History | Annotate | Download | only in src

Lines Matching full:utf8_pos_

454     utf8_pos_ = 0;
460 int utf8_length = Min(str->length(), kUtf8BufferSize - utf8_pos_);
461 String::WriteToFlat(str, utf8_buffer_ + utf8_pos_, 0, utf8_length);
462 utf8_pos_ += utf8_length;
468 for (int i = 0; i < uc16_length && utf8_pos_ < kUtf8BufferSize; ++i) {
471 utf8_buffer_[utf8_pos_++] = static_cast<char>(c);
474 if (utf8_pos_ + char_length > kUtf8BufferSize) break;
475 unibrow::Utf8::Encode(utf8_buffer_ + utf8_pos_, c, previous);
476 utf8_pos_ += char_length;
483 size = Min(size, kUtf8BufferSize - utf8_pos_);
484 memcpy(utf8_buffer_ + utf8_pos_, bytes, size);
485 utf8_pos_ += size;
493 if (utf8_pos_ >= kUtf8BufferSize) return;
494 utf8_buffer_[utf8_pos_++] = c;
498 Vector<char> buffer(utf8_buffer_ + utf8_pos_, kUtf8BufferSize - utf8_pos_);
500 if (size > 0 && utf8_pos_ + size <= kUtf8BufferSize) {
501 utf8_pos_ += size;
506 int size() const { return utf8_pos_; }
512 int utf8_pos_;