#include <unicode.h>
|
static unsigned | LengthOneByte (uint8_t chr) |
|
static unsigned | 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 uint8_t *str, size_t length, size_t *cursor) |
|
static uchar | ValueOf (const uint8_t *str, size_t length, size_t *cursor) |
|
static uchar | ValueOfIncremental (const uint8_t **cursor, State *state, Utf8IncrementalBuffer *buffer) |
|
static uchar | ValueOfIncrementalFinish (State *state) |
|
static bool | IsValidCharacter (uchar c) |
|
static bool | ValidateEncoding (const uint8_t *str, size_t length) |
|
template<typename Char > |
static EncodingResult | Encode (v8::base::Vector< const Char > string, char *buffer, size_t capacity, bool write_null, bool replace_invalid_utf8) |
|
Definition at line 161 of file unicode.h.
◆ State
◆ Utf8IncrementalBuffer
◆ CalculateValue()
uchar unibrow::Utf8::CalculateValue |
( |
const uint8_t * | str, |
|
|
size_t | length, |
|
|
size_t * | cursor ) |
|
static |
◆ Encode() [1/2]
unsigned unibrow::Utf8::Encode |
( |
char * | out, |
|
|
uchar | c, |
|
|
int | previous, |
|
|
bool | replace_invalid = false ) |
|
inlinestatic |
◆ Encode() [2/2]
◆ EncodeOneByte()
unsigned unibrow::Utf8::EncodeOneByte |
( |
char * | out, |
|
|
uint8_t | c ) |
|
inlinestatic |
◆ IsValidCharacter()
bool unibrow::Utf8::IsValidCharacter |
( |
uchar | c | ) |
|
|
inlinestatic |
◆ Length()
unsigned unibrow::Utf8::Length |
( |
uchar | chr, |
|
|
int | previous ) |
|
inlinestatic |
◆ LengthOneByte()
unsigned unibrow::Utf8::LengthOneByte |
( |
uint8_t | chr | ) |
|
|
inlinestatic |
◆ ValidateEncoding()
bool unibrow::Utf8::ValidateEncoding |
( |
const uint8_t * | str, |
|
|
size_t | length ) |
|
static |
◆ ValueOf()
uchar unibrow::Utf8::ValueOf |
( |
const uint8_t * | str, |
|
|
size_t | length, |
|
|
size_t * | cursor ) |
|
inlinestatic |
◆ ValueOfIncremental()
◆ ValueOfIncrementalFinish()
uchar unibrow::Utf8::ValueOfIncrementalFinish |
( |
State * | state | ) |
|
|
static |
◆ kBadChar
const uchar unibrow::Utf8::kBadChar = 0xFFFD |
|
static |
◆ kBufferEmpty
const uchar unibrow::Utf8::kBufferEmpty = 0x0 |
|
static |
◆ kBytesSavedByCombiningSurrogates
const unsigned unibrow::Utf8::kBytesSavedByCombiningSurrogates = 2 |
|
static |
◆ kIncomplete
const uchar unibrow::Utf8::kIncomplete = 0xFFFFFFFC |
|
static |
◆ kMax16BitCodeUnitSize
const unsigned unibrow::Utf8::kMax16BitCodeUnitSize = 3 |
|
static |
◆ kMax8BitCodeUnitSize
const unsigned unibrow::Utf8::kMax8BitCodeUnitSize = 2 |
|
static |
◆ kMaxEncodedSize
const unsigned unibrow::Utf8::kMaxEncodedSize = 4 |
|
static |
◆ kMaxFourByteChar
const unsigned unibrow::Utf8::kMaxFourByteChar = 0x1fffff |
|
static |
◆ kMaxOneByteChar
const unsigned unibrow::Utf8::kMaxOneByteChar = 0x7f |
|
static |
◆ kMaxThreeByteChar
const unsigned unibrow::Utf8::kMaxThreeByteChar = 0xffff |
|
static |
◆ kMaxTwoByteChar
const unsigned unibrow::Utf8::kMaxTwoByteChar = 0x7ff |
|
static |
◆ kSizeOfUnmatchedSurrogate
const unsigned unibrow::Utf8::kSizeOfUnmatchedSurrogate = 3 |
|
static |
The documentation for this class was generated from the following files: