v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <unicode.h>
Static Public Member Functions | |
static uchar | Length (uchar chr, int previous) |
static unsigned | Encode (char *out, uchar c, int previous) |
static const byte * | ReadBlock (Buffer< const char * > str, byte *buffer, unsigned capacity, unsigned *chars_read, unsigned *offset) |
static uchar | CalculateValue (const byte *str, unsigned length, unsigned *cursor) |
Static Public Attributes | |
static const uchar | kBadChar = 0xFFFD |
static const unsigned | kMaxEncodedSize = 4 |
static const unsigned | kMaxOneByteChar = 0x7f |
static const unsigned | kMaxTwoByteChar = 0x7ff |
static const unsigned | kMaxThreeByteChar = 0xffff |
static const unsigned | kMaxFourByteChar = 0x1fffff |
static const unsigned | kBytesSavedByCombiningSurrogates = 2 |
static const unsigned | kSizeOfUnmatchedSurrogate = 3 |
Friends | |
template<unsigned s> | |
class | Utf8InputBuffer |
class | Test |
Definition at line 210 of file unicode.cc.
References Utf8::kBadChar, Utf8::kMaxFourByteChar, Utf8::kMaxOneByteChar, Utf8::kMaxThreeByteChar, and Utf8::kMaxTwoByteChar.
Referenced by Utf8ToUtf16CharacterStream::FillBuffer().
|
inlinestatic |
Definition at line 82 of file unicode-inl.h.
References Utf16::CombineSurrogatePair(), Utf16::IsLeadSurrogate(), Utf16::IsTrailSurrogate(), Utf8::kMaxOneByteChar, Utf8::kMaxThreeByteChar, Utf8::kMaxTwoByteChar, Utf16::kNoPreviousCharacter, and Utf8::kSizeOfUnmatchedSurrogate.
Referenced by Logger::NameBuffer::AppendString(), TEST(), String::ToCString(), and String::WriteUtf8().
|
inlinestatic |
Definition at line 124 of file unicode-inl.h.
References Utf16::IsLeadSurrogate(), Utf16::IsTrailSurrogate(), Utf8::kBytesSavedByCombiningSurrogates, Utf8::kMaxOneByteChar, Utf8::kMaxThreeByteChar, Utf8::kMaxTwoByteChar, and Utf8::kSizeOfUnmatchedSurrogate.
Referenced by Logger::NameBuffer::AppendString(), String::ToCString(), and v8::internal::Utf8LengthHelper().
|
static |
Definition at line 280 of file unicode.cc.
References Buffer< Data >::data(), CharacterStream::EncodeAsciiCharacter(), CharacterStream::EncodeNonAsciiCharacter(), Utf8::kMaxOneByteChar, Buffer< Data >::length(), and NULL.
|
friend |
|
static |
Definition at line 162 of file unicode.h.
Referenced by Utf8::CalculateValue().
|
static |
Definition at line 171 of file unicode.h.
Referenced by Utf8::Length(), and v8::internal::Utf8LengthHelper().
|
static |
Definition at line 163 of file unicode.h.
Referenced by String::WriteUtf8().
|
static |
Definition at line 167 of file unicode.h.
Referenced by Utf8::CalculateValue().
|
static |
Definition at line 164 of file unicode.h.
Referenced by Heap::AllocateInternalSymbol(), Utf8::CalculateValue(), CharacterStream::DecodeCharacter(), Utf8::Encode(), CharacterStream::EncodeCharacter(), Utf8ToUtf16CharacterStream::FillBuffer(), Utf8::Length(), Utf8::ReadBlock(), and TEST().
|
static |
Definition at line 166 of file unicode.h.
Referenced by Utf8::CalculateValue(), Utf8::Encode(), Utf8::Length(), and TEST().
|
static |
Definition at line 165 of file unicode.h.
Referenced by Utf8::CalculateValue(), Utf8::Encode(), Utf8::Length(), and TEST().
|
static |
Definition at line 172 of file unicode.h.
Referenced by Utf8::Encode(), and Utf8::Length().