V8 Project
|
#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 191 of file unicode.cc.
References kBadChar, kMaxFourByteChar, kMaxOneByteChar, kMaxThreeByteChar, and kMaxTwoByteChar.
Referenced by v8::internal::Utf8ToUtf16CharacterStream::CopyChars(), v8::internal::HeapSnapshotJSONSerializer::SerializeString(), and ValueOf().
|
inlinestatic |
Definition at line 91 of file unicode-inl.h.
References unibrow::Utf16::CombineSurrogatePair(), unibrow::Utf16::IsLeadSurrogate(), unibrow::Utf16::IsSurrogatePair(), unibrow::Utf16::IsTrailSurrogate(), kBadChar, kMaxOneByteChar, kMaxThreeByteChar, kMaxTwoByteChar, unibrow::Utf16::kNoPreviousCharacter, and kSizeOfUnmatchedSurrogate.
Referenced by v8::internal::CodeEventLogger::NameBuffer::AppendString(), and v8::internal::String::ToCString().
|
inlinestatic |
Definition at line 140 of file unicode-inl.h.
References unibrow::Utf16::IsLeadSurrogate(), unibrow::Utf16::IsTrailSurrogate(), kBytesSavedByCombiningSurrogates, kMaxOneByteChar, kMaxThreeByteChar, kMaxTwoByteChar, and kSizeOfUnmatchedSurrogate.
Referenced by v8::internal::CodeEventLogger::NameBuffer::AppendString(), v8::internal::String::ToCString(), and v8::Utf8LengthHelper::Visitor::VisitTwoByteString().
Definition at line 129 of file unicode-inl.h.
References CalculateValue(), kBadChar, and kMaxOneByteChar.
Referenced by v8::internal::StringHasher::ComputeUtf8Hash(), v8::internal::String::IsUtf8EqualTo(), unibrow::Utf8DecoderBase::Reset(), v8::internal::WriteTwoByteData(), and unibrow::Utf8DecoderBase::WriteUtf16Slow().
|
static |
Definition at line 139 of file unicode.h.
Referenced by CalculateValue(), Encode(), v8::internal::HeapSnapshotJSONSerializer::SerializeString(), ValueOf(), and v8::internal::WriteTwoByteData().
|
static |
Definition at line 148 of file unicode.h.
Referenced by Length(), v8::Utf8LengthHelper::MergeLeafLeft(), v8::Utf8LengthHelper::MergeLeafRight(), and v8::Utf8LengthHelper::MergeTerminal().
|
static |
Definition at line 152 of file unicode.h.
Referenced by v8::String::WriteUtf8().
|
static |
Definition at line 140 of file unicode.h.
Referenced by v8::internal::String::IsUtf8EqualTo(), and unibrow::Utf8DecoderBase::WriteUtf16Slow().
|
static |
Definition at line 144 of file unicode.h.
Referenced by CalculateValue().
|
static |
Definition at line 141 of file unicode.h.
Referenced by v8::internal::CodeEventLogger::NameBuffer::AppendString(), CalculateValue(), v8::internal::StringHasher::ComputeUtf8Hash(), v8::internal::Utf8ToUtf16CharacterStream::CopyChars(), Encode(), EncodeOneByte(), v8::internal::ExternalStreamingStream::HandleUtf8SplitCharacters(), Length(), v8::internal::String::NonAsciiStart(), v8::internal::Utf8CharacterBack(), v8::internal::Utf8CharacterForward(), and ValueOf().
|
static |
Definition at line 143 of file unicode.h.
Referenced by CalculateValue(), Encode(), and Length().
|
static |
Definition at line 142 of file unicode.h.
Referenced by CalculateValue(), Encode(), and Length().
|
static |