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
Utf16 Class Reference

#include <unicode.h>

Static Public Member Functions

static bool IsSurrogatePair (int lead, int trail)
 
static bool IsLeadSurrogate (int code)
 
static bool IsTrailSurrogate (int code)
 
static int CombineSurrogatePair (uchar lead, uchar trail)
 
static uint16_t LeadSurrogate (uint32_t char_code)
 
static uint16_t TrailSurrogate (uint32_t 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 103 of file unicode.h.

Member Function Documentation

static int CombineSurrogatePair ( uchar  lead,
uchar  trail 
)
inlinestatic

Definition at line 117 of file unicode.h.

Referenced by Utf8::Encode().

static bool IsLeadSurrogate ( int  code)
inlinestatic
static bool IsSurrogatePair ( int  lead,
int  trail 
)
inlinestatic

Definition at line 105 of file unicode.h.

References Utf16::IsLeadSurrogate(), and Utf16::IsTrailSurrogate().

Referenced by Utf8::Encode().

static bool IsTrailSurrogate ( int  code)
inlinestatic
static uint16_t LeadSurrogate ( uint32_t  char_code)
inlinestatic
static uint16_t TrailSurrogate ( uint32_t  char_code)
inlinestatic

Field Documentation

const int kMaxExtraUtf8BytesForOneUtf16CodeUnit = 3
static

Definition at line 127 of file unicode.h.

const uchar kMaxNonSurrogateCharCode = 0xffff
static
const int kUtf8BytesToCodeASurrogate = 3
static

Definition at line 130 of file unicode.h.


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