V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
unibrow::Utf8 Class Reference

Public Types

using State = Utf8DfaDecoder::State
 
typedef uint32_t Utf8IncrementalBuffer
 

Static Public Member Functions

static uchar Length (uchar chr, int previous)
 
static unsigned EncodeOneByte (char *out, uint8_t c)
 
static unsigned Encode (char *out, uchar c, int previous, bool replace_invalid=false)
 
static uchar CalculateValue (const byte *str, size_t length, size_t *cursor)
 
static uchar ValueOf (const byte *str, size_t length, size_t *cursor)
 
static uchar ValueOfIncremental (byte next_byte, size_t *cursor, State *state, Utf8IncrementalBuffer *buffer)
 
static uchar ValueOfIncrementalFinish (State *state)
 
static bool IsValidCharacter (uchar c)
 
static bool ValidateEncoding (const byte *str, size_t length)
 

Static Public Attributes

static const uchar kBadChar = 0xFFFD
 
static const uchar kBufferEmpty = 0x0
 
static const uchar kIncomplete = 0xFFFFFFFC
 
static const unsigned kMaxEncodedSize = 4
 
static const unsigned kMaxOneByteChar = 0x7f
 
static const unsigned kMaxTwoByteChar = 0x7ff
 
static const unsigned kMaxThreeByteChar = 0xffff
 
static const unsigned kMaxFourByteChar = 0x1fffff
 
static const unsigned kBytesSavedByCombiningSurrogates = 2
 
static const unsigned kSizeOfUnmatchedSurrogate = 3
 
static const unsigned kMax16BitCodeUnitSize = 3
 

Detailed Description

Definition at line 133 of file unicode.h.


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