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

#include <unicode.h>

Inheritance diagram for CharacterStream:

Public Member Functions

uchar GetNext ()
 
bool has_more ()
 
virtual void Seek (unsigned)
 
unsigned Length ()
 
unsigned Utf16Length ()
 
virtual ~CharacterStream ()
 
virtual void Rewind ()=0
 

Static Public Member Functions

static bool EncodeCharacter (uchar c, byte *buffer, unsigned capacity, unsigned &offset)
 
static bool EncodeAsciiCharacter (uchar c, byte *buffer, unsigned capacity, unsigned &offset)
 
static bool EncodeNonAsciiCharacter (uchar c, byte *buffer, unsigned capacity, unsigned &offset)
 
static uchar DecodeCharacter (const byte *buffer, unsigned *offset)
 

Protected Member Functions

virtual void FillBuffer ()=0
 
virtual bool BoundsCheck (unsigned offset)=0
 

Protected Attributes

unsigned remaining_
 
unsigned cursor_
 
const bytebuffer_
 

Detailed Description

Definition at line 184 of file unicode.h.

Constructor & Destructor Documentation

virtual ~CharacterStream ( )
inlinevirtual

Definition at line 192 of file unicode.h.

Member Function Documentation

uchar DecodeCharacter ( const byte buffer,
unsigned *  offset 
)
inlinestatic

Definition at line 196 of file unicode-inl.h.

References IF_BIG, IF_LITTLE, and Utf8::kMaxOneByteChar.

Referenced by CharacterStream::GetNext().

bool EncodeAsciiCharacter ( uchar  c,
byte buffer,
unsigned  capacity,
unsigned &  offset 
)
inlinestatic
bool EncodeCharacter ( uchar  c,
byte buffer,
unsigned  capacity,
unsigned &  offset 
)
inlinestatic
bool EncodeNonAsciiCharacter ( uchar  c,
byte buffer,
unsigned  capacity,
unsigned &  offset 
)
inlinestatic
unsigned Length ( )

Field Documentation

const byte* buffer_
protected
unsigned cursor_
protected

Definition at line 208 of file unicode.h.

Referenced by CharacterStream::GetNext().

unsigned remaining_
protected

Definition at line 206 of file unicode.h.

Referenced by CharacterStream::GetNext(), and CharacterStream::has_more().


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