Loading...
Searching...
No Matches
unicode.h File Reference
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Macros

#define UTF8_ONE_BYTE_MASK   0x80
 
#define UTF8_ONE_BYTE_BITS   0
 
#define UTF8_TWO_BYTES_MASK   0xE0
 
#define UTF8_TWO_BYTES_BITS   0xC0
 
#define UTF8_THREE_BYTES_MASK   0xF0
 
#define UTF8_THREE_BYTES_BITS   0xE0
 
#define UTF8_FOUR_BYTES_MASK   0xF8
 
#define UTF8_FOUR_BYTES_BITS   0xF0
 
#define UTF8_CONTINUATION_MASK   0xC0
 
#define UTF8_CONTINUATION_BITS   0x80
 

Functions

size_t utf8_codepoint_size (const uint8_t byte)
 

Macro Definition Documentation

◆ UTF8_CONTINUATION_BITS

#define UTF8_CONTINUATION_BITS   0x80

◆ UTF8_CONTINUATION_MASK

#define UTF8_CONTINUATION_MASK   0xC0

◆ UTF8_FOUR_BYTES_BITS

#define UTF8_FOUR_BYTES_BITS   0xF0

◆ UTF8_FOUR_BYTES_MASK

#define UTF8_FOUR_BYTES_MASK   0xF8

◆ UTF8_ONE_BYTE_BITS

#define UTF8_ONE_BYTE_BITS   0

◆ UTF8_ONE_BYTE_MASK

#define UTF8_ONE_BYTE_MASK   0x80

◆ UTF8_THREE_BYTES_BITS

#define UTF8_THREE_BYTES_BITS   0xE0

◆ UTF8_THREE_BYTES_MASK

#define UTF8_THREE_BYTES_MASK   0xF0

◆ UTF8_TWO_BYTES_BITS

#define UTF8_TWO_BYTES_BITS   0xC0

◆ UTF8_TWO_BYTES_MASK

#define UTF8_TWO_BYTES_MASK   0xE0

Function Documentation

◆ utf8_codepoint_size()

size_t utf8_codepoint_size ( const uint8_t byte)