v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Utf16 Class Reference

#include <unicode.h>

Static Public Member Functions

static bool IsLeadSurrogate (int code)
 
static bool IsTrailSurrogate (int code)
 
static int CombineSurrogatePair (uchar lead, uchar trail)
 
static uchar LeadSurrogate (int char_code)
 
static uchar TrailSurrogate (int char_code)
 

Static Public Attributes

static const int kNoPreviousCharacter = -1
 
static const uchar kMaxNonSurrogateCharCode = 0xffff
 
static const int kMaxExtraUtf8BytesForOneUtf16CodeUnit = 3
 
static const int kUtf8BytesToCodeASurrogate = 3
 

Detailed Description

Definition at line 118 of file unicode.h.

Member Function Documentation

static int CombineSurrogatePair ( uchar  lead,
uchar  trail 
)
inlinestatic

Definition at line 129 of file unicode.h.

Referenced by Utf8::Encode().

static bool IsLeadSurrogate ( int  code)
inlinestatic
static bool IsTrailSurrogate ( int  code)
inlinestatic

Field Documentation

const int kMaxExtraUtf8BytesForOneUtf16CodeUnit = 3
static

Definition at line 139 of file unicode.h.

const int kUtf8BytesToCodeASurrogate = 3
static

Definition at line 142 of file unicode.h.


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