v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utf8LengthHelper Class Reference
Inheritance diagram for Utf8LengthHelper:
Collaboration diagram for Utf8LengthHelper:

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
 

Detailed Description

Definition at line 4266 of file api.cc.

Member Enumeration Documentation

enum State
Enumerator
kEndsWithLeadingSurrogate 
kStartsWithTrailingSurrogate 
kLeftmostEdgeIsCalculated 
kRightmostEdgeIsCalculated 
kLeftmostEdgeIsSurrogate 
kRightmostEdgeIsSurrogate 

Definition at line 4268 of file api.cc.

Member Function Documentation

static int Calculate ( i::ConsString current)
inlinestatic

Definition at line 4439 of file api.cc.

References Utf8LengthHelper::Calculate(), and Utf8LengthHelper::kInitialState.

static bool EndsWithSurrogate ( uint8_t  state)
inlinestatic
static bool StartsWithSurrogate ( uint8_t  state)
inlinestatic

Field Documentation

const uint8_t kInitialState = 0
static

The documentation for this class was generated from the following file: