v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utf16CharacterStream Class Referenceabstract

#include <scanner.h>

Inheritance diagram for Utf16CharacterStream:

Public Member Functions

 Utf16CharacterStream ()
 
virtual ~Utf16CharacterStream ()
 
uc32 Advance ()
 
unsigned pos () const
 
unsigned SeekForward (unsigned code_unit_count)
 
virtual void PushBack (int32_t code_unit)=0
 

Protected Member Functions

virtual bool ReadBlock ()=0
 
virtual unsigned SlowSeekForward (unsigned code_unit_count)=0
 

Protected Attributes

const uint16_t * buffer_cursor_
 
const uint16_t * buffer_end_
 
unsigned pos_
 

Static Protected Attributes

static const uc32 kEndOfInput = -1
 

Detailed Description

Definition at line 66 of file scanner.h.

Constructor & Destructor Documentation

Definition at line 68 of file scanner.h.

virtual ~Utf16CharacterStream ( )
inlinevirtual

Definition at line 69 of file scanner.h.

Member Function Documentation

unsigned pos ( ) const
inline

Definition at line 90 of file scanner.h.

References Utf16CharacterStream::pos_.

Referenced by Scanner::SeekForward(), TEST(), and TestCharacterStream().

virtual void PushBack ( int32_t  code_unit)
pure virtual
virtual bool ReadBlock ( )
protectedpure virtual
unsigned SeekForward ( unsigned  code_unit_count)
inline
virtual unsigned SlowSeekForward ( unsigned  code_unit_count)
protectedpure virtual

Field Documentation

const uc32 kEndOfInput = -1
staticprotected

The documentation for this class was generated from the following file: