Go to the source code of this file.
|
static uint32_t | get_utf8 (const uint8_t **buffer, const uint8_t *end) |
|
◆ get_utf8()
static uint32_t get_utf8 |
( |
const uint8_t ** |
buffer, |
|
|
const uint8_t * |
end |
|
) |
| |
|
static |
Definition at line 32 of file utf8_p.h.
37 ptrdiff_t n = end - *buffer;
55 }
else if (uc < 0xF0) {
60 }
else if (uc < 0xF5) {
69 if (n < charsNeeded - 1)
74 if ((b & 0xc0) != 0x80)
79 if (charsNeeded > 2) {
82 if ((b & 0xc0) != 0x80)
87 if (charsNeeded > 3) {
90 if ((b & 0xc0) != 0x80)
98 if (uc < min_uc || uc - 0xd800U < 2048U || uc > 0x10ffff)