v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
unibrow::Utf16 Class Reference

#include <unicode.h>

Collaboration diagram for unibrow::Utf16:

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 bool HasUnpairedSurrogate (const uint16_t *code_units, size_t length)
 
static void ReplaceUnpairedSurrogates (const uint16_t *source_code_units, uint16_t *dest_code_units, size_t length)
 

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 100 of file unicode.h.

Member Function Documentation

◆ CombineSurrogatePair()

static int unibrow::Utf16::CombineSurrogatePair ( uchar lead,
uchar trail )
inlinestatic

Definition at line 113 of file unicode.h.

Here is the caller graph for this function:

◆ HasUnpairedSurrogate()

bool unibrow::Utf16::HasUnpairedSurrogate ( const uint16_t * code_units,
size_t length )
inlinestatic

Definition at line 64 of file unicode-inl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsLeadSurrogate()

static bool unibrow::Utf16::IsLeadSurrogate ( int code)
inlinestatic

Definition at line 106 of file unicode.h.

Here is the caller graph for this function:

◆ IsSurrogatePair()

static bool unibrow::Utf16::IsSurrogatePair ( int lead,
int trail )
inlinestatic

Definition at line 103 of file unicode.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsTrailSurrogate()

static bool unibrow::Utf16::IsTrailSurrogate ( int code)
inlinestatic

Definition at line 109 of file unicode.h.

Here is the caller graph for this function:

◆ LeadSurrogate()

static uint16_t unibrow::Utf16::LeadSurrogate ( uint32_t char_code)
inlinestatic

Definition at line 126 of file unicode.h.

Here is the caller graph for this function:

◆ ReplaceUnpairedSurrogates()

void unibrow::Utf16::ReplaceUnpairedSurrogates ( const uint16_t * source_code_units,
uint16_t * dest_code_units,
size_t length )
static

Definition at line 244 of file unicode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TrailSurrogate()

static uint16_t unibrow::Utf16::TrailSurrogate ( uint32_t char_code)
inlinestatic

Definition at line 129 of file unicode.h.

Here is the caller graph for this function:

Member Data Documentation

◆ kMaxExtraUtf8BytesForOneUtf16CodeUnit

const int unibrow::Utf16::kMaxExtraUtf8BytesForOneUtf16CodeUnit = 3
static

Definition at line 122 of file unicode.h.

◆ kMaxNonSurrogateCharCode

const uchar unibrow::Utf16::kMaxNonSurrogateCharCode = 0xffff
static

Definition at line 116 of file unicode.h.

◆ kNoPreviousCharacter

const int unibrow::Utf16::kNoPreviousCharacter = -1
static

Definition at line 102 of file unicode.h.

◆ kUtf8BytesToCodeASurrogate

const int unibrow::Utf16::kUtf8BytesToCodeASurrogate = 3
static

Definition at line 125 of file unicode.h.


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