#include <unicode.h>
|
static intptr_t | Length (int32_t ch) |
|
static bool | IsSurrogate (uint32_t ch) |
|
static bool | IsLeadSurrogate (uint32_t ch) |
|
static bool | IsTrailSurrogate (uint32_t ch) |
|
static int32_t | Next (const uint16_t *characters, intptr_t *i, intptr_t len) |
|
static int32_t | Decode (uint16_t lead, uint16_t trail) |
|
static void | Encode (int32_t codepoint, uint16_t *dst) |
|
Definition at line 115 of file unicode.h.
◆ Decode()
static int32_t dart::Utf16::Decode |
( |
uint16_t |
lead, |
|
|
uint16_t |
trail |
|
) |
| |
|
inlinestatic |
Definition at line 151 of file unicode.h.
151 {
152 return 0x10000 + ((lead & 0x000003FF) << 10) + (trail & 0x3FF);
153 }
◆ Encode()
void dart::Utf16::Encode |
( |
int32_t |
codepoint, |
|
|
uint16_t * |
dst |
|
) |
| |
|
static |
Definition at line 273 of file unicode.cc.
273 {
276 dst[0] = (Utf16::kLeadSurrogateOffset + (codepoint >> 10));
277 dst[1] = (0xDC00 + (codepoint & 0x3FF));
278}
static constexpr int32_t kMaxCodeUnit
◆ IsLeadSurrogate()
static bool dart::Utf16::IsLeadSurrogate |
( |
uint32_t |
ch | ) |
|
|
inlinestatic |
Definition at line 126 of file unicode.h.
126 {
127 return (ch & 0xFFFFFC00) == 0xD800;
128 }
◆ IsSurrogate()
static bool dart::Utf16::IsSurrogate |
( |
uint32_t |
ch | ) |
|
|
inlinestatic |
Definition at line 123 of file unicode.h.
123{ return (ch & 0xFFFFF800) == 0xD800; }
◆ IsTrailSurrogate()
static bool dart::Utf16::IsTrailSurrogate |
( |
uint32_t |
ch | ) |
|
|
inlinestatic |
Definition at line 131 of file unicode.h.
131 {
132 return (ch & 0xFFFFFC00) == 0xDC00;
133 }
◆ Length()
static intptr_t dart::Utf16::Length |
( |
int32_t |
ch | ) |
|
|
inlinestatic |
◆ Next()
static int32_t dart::Utf16::Next |
( |
const uint16_t * |
characters, |
|
|
intptr_t * |
i, |
|
|
intptr_t |
len |
|
) |
| |
|
inlinestatic |
Definition at line 137 of file unicode.h.
137 {
144 }
145 }
147 return ch;
148 }
static int32_t Decode(uint16_t lead, uint16_t trail)
static bool IsLeadSurrogate(uint32_t ch)
static bool IsTrailSurrogate(uint32_t ch)
static T LoadUnaligned(const T *ptr)
◆ kLeadSurrogateEnd
constexpr int32_t dart::Utf16::kLeadSurrogateEnd = 0xDBFF |
|
staticconstexpr |
◆ kLeadSurrogateStart
constexpr int32_t dart::Utf16::kLeadSurrogateStart = 0xD800 |
|
staticconstexpr |
◆ kMaxCodeUnit
constexpr int32_t dart::Utf16::kMaxCodeUnit = 0xFFFF |
|
staticconstexpr |
◆ kTrailSurrogateEnd
constexpr int32_t dart::Utf16::kTrailSurrogateEnd = 0xDFFF |
|
staticconstexpr |
◆ kTrailSurrogateStart
constexpr int32_t dart::Utf16::kTrailSurrogateStart = 0xDC00 |
|
staticconstexpr |
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/platform/unicode.h
- third_party/dart-lang/sdk/runtime/platform/unicode.cc