![]() |
v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <unicode.h>
Public Member Functions | |
virtual void | Rewind () |
void | Reset (Input input) |
void | Seek (unsigned position) |
void | Reset (unsigned position, Input input) |
![]() | |
uchar | GetNext () |
bool | has_more () |
unsigned | Length () |
unsigned | Utf16Length () |
virtual | ~CharacterStream () |
Protected Member Functions | |
InputBuffer () | |
InputBuffer (Input input) | |
virtual void | FillBuffer () |
Protected Attributes | |
unsigned | offset_ |
Input | input_ |
byte | util_buffer_ [kSize] |
![]() | |
unsigned | remaining_ |
unsigned | cursor_ |
const byte * | buffer_ |
Additional Inherited Members | |
![]() | |
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) |
Provides efficient access to encoded characters in strings. It does so by reading characters one block at a time, rather than one character at a time, which gives string implementations an opportunity to optimize the decoding.
|
inlineprotected |
|
inlineexplicitprotected |
|
protectedvirtual |
|
inline |
Definition at line 231 of file unicode-inl.h.
References v8::internal::Reset().
Referenced by InputBuffer< String, String *, 1024 >::InputBuffer(), v8::internal::RUNTIME_FUNCTION(), String::StringShortPrint(), String::WriteAscii(), and String::WriteUtf8().
|
inline |
Definition at line 222 of file unicode-inl.h.
References buffer_.
|
virtual |
Implements CharacterStream.
Definition at line 217 of file unicode-inl.h.
References v8::internal::Reset().
|
virtual |
Reimplemented from CharacterStream.
Definition at line 236 of file unicode-inl.h.
References buffer_.