28 #ifndef V8_SCANNER_CHARACTER_STREAMS_H_
29 #define V8_SCANNER_CHARACTER_STREAMS_H_
55 virtual unsigned FillBuffer(
unsigned position,
unsigned length) = 0;
66 unsigned start_position,
67 unsigned end_position);
72 virtual unsigned FillBuffer(
unsigned position,
unsigned length);
88 virtual unsigned FillBuffer(
unsigned char_position,
unsigned length);
129 #endif // V8_SCANNER_CHARACTER_STREAMS_H_
virtual unsigned FillBuffer(unsigned position, unsigned length)=0
virtual ~Utf8ToUtf16CharacterStream()
const uc16 * buffer_cursor_
unsigned raw_character_position_
virtual void SlowPushBack(uc16 character)
static const unsigned kBufferSize
void SetRawPosition(unsigned char_position)
virtual void PushBack(uc32 character)
virtual ~BufferedUtf16CharacterStream()
#define ASSERT(condition)
virtual unsigned SlowSeekForward(unsigned delta)
unsigned raw_data_length_
virtual unsigned BufferSeekForward(unsigned delta)=0
Utf8ToUtf16CharacterStream(const byte *data, unsigned length)
Handle< ExternalTwoByteString > source_
GenericStringUtf16CharacterStream(Handle< String > data, unsigned start_position, unsigned end_position)
BufferedUtf16CharacterStream()
virtual unsigned SlowSeekForward(unsigned delta)
virtual ~GenericStringUtf16CharacterStream()
virtual ~ExternalTwoByteStringUtf16CharacterStream()
ExternalTwoByteStringUtf16CharacterStream(Handle< ExternalTwoByteString > data, int start_position, int end_position)
uc16 buffer_[kBufferSize]
virtual unsigned BufferSeekForward(unsigned delta)
virtual unsigned FillBuffer(unsigned char_position, unsigned length)
virtual unsigned FillBuffer(unsigned position, unsigned length)
virtual unsigned BufferSeekForward(unsigned delta)
virtual void PushBack(uc32 character)
const uc16 * pushback_limit_
static const unsigned kPushBackStepSize