Flutter Engine
The Flutter Engine
Namespaces | Typedefs | Functions | Variables
SkUTF.h File Reference
#include "include/private/base/SkAPI.h"
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  SkUTF
 

Typedefs

typedef int32_t SkUnichar
 

Functions

SK_SPI int SkUTF::CountUTF8 (const char *utf8, size_t byteLength)
 
SK_SPI int SkUTF::CountUTF16 (const uint16_t *utf16, size_t byteLength)
 
SK_SPI int SkUTF::CountUTF32 (const int32_t *utf32, size_t byteLength)
 
SK_SPI SkUnichar SkUTF::NextUTF8 (const char **ptr, const char *end)
 
SK_SPI SkUnichar SkUTF::NextUTF8WithReplacement (const char **ptr, const char *end)
 
SK_SPI SkUnichar SkUTF::NextUTF16 (const uint16_t **ptr, const uint16_t *end)
 
SK_SPI SkUnichar SkUTF::NextUTF32 (const int32_t **ptr, const int32_t *end)
 
SK_SPI size_t SkUTF::ToUTF8 (SkUnichar uni, char utf8[kMaxBytesInUTF8Sequence]=nullptr)
 
SK_SPI size_t SkUTF::ToUTF16 (SkUnichar uni, uint16_t utf16[2]=nullptr)
 
SK_SPI int SkUTF::UTF8ToUTF16 (uint16_t dst[], int dstCapacity, const char src[], size_t srcByteLength)
 
SK_SPI int SkUTF::UTF16ToUTF8 (char dst[], int dstCapacity, const uint16_t src[], size_t srcLength)
 
static bool SkUTF::IsLeadingSurrogateUTF16 (uint16_t c)
 
static bool SkUTF::IsTrailingSurrogateUTF16 (uint16_t c)
 

Variables

constexpr unsigned SkUTF::kMaxBytesInUTF8Sequence = 4
 

Typedef Documentation

◆ SkUnichar

typedef int32_t SkUnichar

Definition at line 11 of file SkUTF.h.