V8 Project
|
#include <scanner-character-streams.h>
Public Member Functions | |
Utf8ToUtf16CharacterStream (const byte *data, unsigned length) | |
virtual | ~Utf8ToUtf16CharacterStream () |
![]() | |
BufferedUtf16CharacterStream () | |
virtual | ~BufferedUtf16CharacterStream () |
virtual void | PushBack (uc32 character) |
![]() | |
Utf16CharacterStream () | |
virtual | ~Utf16CharacterStream () |
uc32 | Advance () |
unsigned | pos () const |
unsigned | SeekForward (unsigned code_unit_count) |
Static Public Member Functions | |
static unsigned | CopyChars (uint16_t *dest, unsigned length, const byte *src, unsigned *src_pos, unsigned src_length) |
Protected Member Functions | |
virtual unsigned | BufferSeekForward (unsigned delta) |
virtual unsigned | FillBuffer (unsigned char_position) |
void | SetRawPosition (unsigned char_position) |
![]() | |
virtual unsigned | SlowSeekForward (unsigned delta) |
virtual bool | ReadBlock () |
virtual void | SlowPushBack (uc16 character) |
Protected Attributes | |
const byte * | raw_data_ |
unsigned | raw_data_length_ |
unsigned | raw_data_pos_ |
unsigned | raw_character_position_ |
![]() | |
const uc16 * | pushback_limit_ |
uc16 | buffer_ [kBufferSize] |
![]() | |
const uint16_t * | buffer_cursor_ |
const uint16_t * | buffer_end_ |
unsigned | pos_ |
Additional Inherited Members | |
![]() | |
static const unsigned | kBufferSize = 512 |
static const unsigned | kPushBackStepSize = 16 |
![]() | |
static const uc32 | kEndOfInput = -1 |
Definition at line 57 of file scanner-character-streams.h.
v8::internal::Utf8ToUtf16CharacterStream::Utf8ToUtf16CharacterStream | ( | const byte * | data, |
unsigned | length | ||
) |
Definition at line 162 of file scanner-character-streams.cc.
References v8::internal::BufferedUtf16CharacterStream::ReadBlock().
|
virtual |
Definition at line 173 of file scanner-character-streams.cc.
|
protectedvirtual |
Implements v8::internal::BufferedUtf16CharacterStream.
Definition at line 205 of file scanner-character-streams.cc.
References v8::internal::Utf16CharacterStream::pos_, raw_character_position_, v8::internal::BufferedUtf16CharacterStream::ReadBlock(), and SetRawPosition().
|
static |
Definition at line 176 of file scanner-character-streams.cc.
References unibrow::Utf8::CalculateValue(), unibrow::Utf8::kMaxOneByteChar, unibrow::Utf16::LeadSurrogate(), and unibrow::Utf16::TrailSurrogate().
Referenced by v8::internal::anonymous_namespace{scanner-character-streams.cc}::CopyCharsHelper(), and FillBuffer().
|
protectedvirtual |
Implements v8::internal::BufferedUtf16CharacterStream.
Definition at line 215 of file scanner-character-streams.cc.
References v8::internal::BufferedUtf16CharacterStream::buffer_, CopyChars(), v8::internal::BufferedUtf16CharacterStream::kBufferSize, raw_character_position_, raw_data_, raw_data_length_, raw_data_pos_, and SetRawPosition().
|
protected |
Definition at line 290 of file scanner-character-streams.cc.
References DCHECK, raw_character_position_, raw_data_, raw_data_length_, raw_data_pos_, v8::internal::Utf8CharacterBack(), and v8::internal::Utf8CharacterForward().
Referenced by BufferSeekForward(), and FillBuffer().
|
protected |
Definition at line 75 of file scanner-character-streams.h.
Referenced by BufferSeekForward(), FillBuffer(), and SetRawPosition().
|
protected |
Definition at line 70 of file scanner-character-streams.h.
Referenced by FillBuffer(), and SetRawPosition().
|
protected |
Definition at line 71 of file scanner-character-streams.h.
Referenced by FillBuffer(), and SetRawPosition().
|
protected |
Definition at line 72 of file scanner-character-streams.h.
Referenced by FillBuffer(), and SetRawPosition().