v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <unicode.h>
Static Public Member Functions | |
static uchar | Length (uchar chr, int previous) |
static unsigned | EncodeOneByte (char *out, uint8_t c) |
static unsigned | Encode (char *out, uchar c, int previous, bool replace_invalid=false) |
static uchar | CalculateValue (const byte *str, unsigned length, unsigned *cursor) |
static uchar | ValueOf (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 |
static const unsigned | kMax16BitCodeUnitSize = 3 |
Definition at line 214 of file unicode.cc.
References Utf8::kBadChar, Utf8::kMaxFourByteChar, Utf8::kMaxOneByteChar, Utf8::kMaxThreeByteChar, and Utf8::kMaxTwoByteChar.
Referenced by Utf8ToUtf16CharacterStream::FillBuffer(), and Utf8::ValueOf().
Definition at line 114 of file unicode-inl.h.
References Utf16::CombineSurrogatePair(), Utf16::IsLeadSurrogate(), Utf16::IsSurrogatePair(), Utf16::IsTrailSurrogate(), Utf8::kBadChar, Utf8::kMaxOneByteChar, Utf8::kMaxThreeByteChar, Utf8::kMaxTwoByteChar, Utf16::kNoPreviousCharacter, and Utf8::kSizeOfUnmatchedSurrogate.
Referenced by CodeEventLogger::NameBuffer::AppendString(), TEST(), and String::ToCString().
|
inlinestatic |
Definition at line 99 of file unicode-inl.h.
References Utf8::kMaxOneByteChar.
|
inlinestatic |
Definition at line 163 of file unicode-inl.h.
References Utf16::IsLeadSurrogate(), Utf16::IsTrailSurrogate(), Utf8::kBytesSavedByCombiningSurrogates, Utf8::kMaxOneByteChar, Utf8::kMaxThreeByteChar, Utf8::kMaxTwoByteChar, and Utf8::kSizeOfUnmatchedSurrogate.
Referenced by CodeEventLogger::NameBuffer::AppendString(), String::ToCString(), and Utf8LengthHelper::Visitor::VisitTwoByteString().
Definition at line 152 of file unicode-inl.h.
References Utf8::CalculateValue(), Utf8::kBadChar, and Utf8::kMaxOneByteChar.
Referenced by StringHasher::ComputeUtf8Hash(), String::IsUtf8EqualTo(), Utf8DecoderBase::Reset(), and Utf8DecoderBase::WriteUtf16Slow().
|
static |
Definition at line 162 of file unicode.h.
Referenced by Utf8::CalculateValue(), Utf8::Encode(), and Utf8::ValueOf().
|
static |
Definition at line 171 of file unicode.h.
Referenced by Utf8::Length(), Utf8LengthHelper::MergeLeafLeft(), Utf8LengthHelper::MergeLeafRight(), and Utf8LengthHelper::MergeTerminal().
|
static |
Definition at line 175 of file unicode.h.
Referenced by String::WriteUtf8().
|
static |
Definition at line 163 of file unicode.h.
Referenced by String::IsUtf8EqualTo(), and Utf8DecoderBase::WriteUtf16Slow().
|
static |
Definition at line 167 of file unicode.h.
Referenced by Utf8::CalculateValue().
|
static |
Definition at line 164 of file unicode.h.
Referenced by CodeEventLogger::NameBuffer::AppendString(), Utf8::CalculateValue(), StringHasher::ComputeUtf8Hash(), Utf8::Encode(), Utf8::EncodeOneByte(), Utf8ToUtf16CharacterStream::FillBuffer(), Utf8::Length(), String::NonAsciiStart(), TEST(), and Utf8::ValueOf().
|
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().