v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
Data Structures | |
class | Visitor |
Public Types | |
enum | State { kEndsWithLeadingSurrogate = 1 << 0, kStartsWithTrailingSurrogate = 1 << 1, kLeftmostEdgeIsCalculated = 1 << 2, kRightmostEdgeIsCalculated = 1 << 3, kLeftmostEdgeIsSurrogate = 1 << 4, kRightmostEdgeIsSurrogate = 1 << 5 } |
Static Public Member Functions | |
static bool | EndsWithSurrogate (uint8_t state) |
static bool | StartsWithSurrogate (uint8_t state) |
static void | MergeLeafLeft (int *length, uint8_t *state, uint8_t leaf_state) |
static void | MergeLeafRight (int *length, uint8_t *state, uint8_t leaf_state) |
static void | MergeTerminal (int *length, uint8_t state, uint8_t *state_out) |
static int | Calculate (i::ConsString *current, uint8_t *state_out) |
static int | Calculate (i::ConsString *current) |
Static Public Attributes | |
static const uint8_t | kInitialState = 0 |
enum State |
|
inlinestatic |
Definition at line 4388 of file api.cc.
References ConsString::first(), Utf8LengthHelper::kInitialState, String::length(), Utf8LengthHelper::MergeLeafLeft(), Utf8LengthHelper::MergeLeafRight(), Utf8LengthHelper::MergeTerminal(), NULL, ConsString::second(), UNREACHABLE, and Utf8LengthHelper::Visitor::VisitFlat().
Referenced by Utf8LengthHelper::Calculate().
|
inlinestatic |
Definition at line 4439 of file api.cc.
References Utf8LengthHelper::Calculate(), and Utf8LengthHelper::kInitialState.
|
inlinestatic |
Definition at line 4279 of file api.cc.
References Utf8LengthHelper::kEndsWithLeadingSurrogate.
Referenced by Utf8LengthHelper::MergeLeafLeft(), Utf8LengthHelper::MergeLeafRight(), and Utf8LengthHelper::MergeTerminal().
|
inlinestatic |
Definition at line 4339 of file api.cc.
References ASSERT, Utf8LengthHelper::EndsWithSurrogate(), Utf8::kBytesSavedByCombiningSurrogates, Utf8LengthHelper::kEndsWithLeadingSurrogate, Utf8LengthHelper::kLeftmostEdgeIsCalculated, Utf8LengthHelper::kLeftmostEdgeIsSurrogate, and Utf8LengthHelper::StartsWithSurrogate().
Referenced by Utf8LengthHelper::Calculate().
|
inlinestatic |
Definition at line 4357 of file api.cc.
References ASSERT, Utf8LengthHelper::EndsWithSurrogate(), Utf8::kBytesSavedByCombiningSurrogates, Utf8LengthHelper::kRightmostEdgeIsCalculated, Utf8LengthHelper::kRightmostEdgeIsSurrogate, Utf8LengthHelper::kStartsWithTrailingSurrogate, and Utf8LengthHelper::StartsWithSurrogate().
Referenced by Utf8LengthHelper::Calculate().
|
inlinestatic |
Definition at line 4375 of file api.cc.
References ASSERT, Utf8LengthHelper::EndsWithSurrogate(), Utf8::kBytesSavedByCombiningSurrogates, Utf8LengthHelper::kEndsWithLeadingSurrogate, Utf8LengthHelper::kInitialState, Utf8LengthHelper::kLeftmostEdgeIsCalculated, Utf8LengthHelper::kLeftmostEdgeIsSurrogate, Utf8LengthHelper::kRightmostEdgeIsCalculated, Utf8LengthHelper::kRightmostEdgeIsSurrogate, Utf8LengthHelper::kStartsWithTrailingSurrogate, and Utf8LengthHelper::StartsWithSurrogate().
Referenced by Utf8LengthHelper::Calculate().
|
inlinestatic |
Definition at line 4283 of file api.cc.
References Utf8LengthHelper::kStartsWithTrailingSurrogate.
Referenced by Utf8LengthHelper::MergeLeafLeft(), Utf8LengthHelper::MergeLeafRight(), and Utf8LengthHelper::MergeTerminal().
|
static |
Definition at line 4277 of file api.cc.
Referenced by Utf8LengthHelper::Calculate(), Utf8LengthHelper::MergeTerminal(), and Utf8LengthHelper::Visitor::VisitOneByteString().