v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <unicode.h>
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 byte * | buffer_ |
|
inlinevirtual |
|
protectedpure virtual |
Definition at line 196 of file unicode-inl.h.
References IF_BIG, IF_LITTLE, and Utf8::kMaxOneByteChar.
Referenced by CharacterStream::GetNext().
|
inlinestatic |
Definition at line 162 of file unicode-inl.h.
Referenced by CharacterStream::EncodeCharacter(), ExternalTwoByteString::ExternalTwoByteStringReadBlockIntoBuffer(), Utf8::ReadBlock(), and SeqTwoByteString::SeqTwoByteStringReadBlockIntoBuffer().
Definition at line 187 of file unicode-inl.h.
References CharacterStream::EncodeAsciiCharacter(), CharacterStream::EncodeNonAsciiCharacter(), and Utf8::kMaxOneByteChar.
|
inlinestatic |
Definition at line 170 of file unicode-inl.h.
References IF_BIG, and IF_LITTLE.
Referenced by CharacterStream::EncodeCharacter(), ExternalTwoByteString::ExternalTwoByteStringReadBlockIntoBuffer(), Utf8::ReadBlock(), and SeqTwoByteString::SeqTwoByteStringReadBlockIntoBuffer().
|
protectedpure virtual |
|
inline |
Definition at line 140 of file unicode-inl.h.
References ASSERT, CharacterStream::BoundsCheck(), CharacterStream::buffer_, CharacterStream::cursor_, CharacterStream::DecodeCharacter(), CharacterStream::FillBuffer(), and CharacterStream::remaining_.
Referenced by Heap::AllocateInternalSymbol(), String::ComputeArrayIndex(), String::ComputeHashField(), CharacterStream::Length(), CodeGenerator::PrintCode(), StringStream::Put(), v8::internal::RUNTIME_FUNCTION(), CharacterStream::Seek(), String::StringShortPrint(), String::ToCString(), String::ToWideCString(), CharacterStream::Utf16Length(), String::WriteAscii(), and String::WriteUtf8().
|
inline |
Definition at line 187 of file unicode.h.
References CharacterStream::remaining_.
Referenced by Heap::AllocateInternalSymbol(), String::ComputeArrayIndex(), String::ComputeHashField(), CharacterStream::Length(), CodeGenerator::PrintCode(), StringStream::Put(), v8::internal::RUNTIME_FUNCTION(), String::ToCString(), String::ToWideCString(), and CharacterStream::Utf16Length().
unsigned Length | ( | ) |
Definition at line 332 of file unicode.cc.
References CharacterStream::GetNext(), CharacterStream::has_more(), and CharacterStream::Rewind().
|
pure virtual |
Implemented in InputBuffer< Reader, Input, kSize >, InputBuffer< String, String **, 256 >, InputBuffer< Utf8, Buffer< const char * >, s >, and InputBuffer< String, String *, 1024 >.
Referenced by Heap::AllocateInternalSymbol(), CharacterStream::Length(), CharacterStream::Seek(), String::ToCString(), and CharacterStream::Utf16Length().
|
virtual |
Reimplemented in SafeStringInputBuffer, StringInputBuffer, InputBuffer< Reader, Input, kSize >, InputBuffer< String, String **, 256 >, InputBuffer< Utf8, Buffer< const char * >, s >, and InputBuffer< String, String *, 1024 >.
Definition at line 352 of file unicode.cc.
References CharacterStream::GetNext(), and CharacterStream::Rewind().
Referenced by String::ToCString().
unsigned Utf16Length | ( | ) |
Definition at line 342 of file unicode.cc.
References CharacterStream::GetNext(), CharacterStream::has_more(), Utf16::kMaxNonSurrogateCharCode, and CharacterStream::Rewind().
Referenced by Heap::AllocateInternalSymbol(), and Utf8SymbolKey::Hash().
|
protected |
Definition at line 210 of file unicode.h.
Referenced by InputBuffer< String, String *, 1024 >::BoundsCheck(), and CharacterStream::GetNext().
|
protected |
Definition at line 208 of file unicode.h.
Referenced by CharacterStream::GetNext().
|
protected |
Definition at line 206 of file unicode.h.
Referenced by CharacterStream::GetNext(), and CharacterStream::has_more().