26 #ifndef _UTF8REWIND_INTERNAL_CODEPOINT_H_
27 #define _UTF8REWIND_INTERNAL_CODEPOINT_H_
47 #define MAX_BASIC_LATIN 0x007F
53 #define MAX_LATIN_1 0x00FF
59 #define MAX_BASIC_MULTILINGUAL_PLANE 0xFFFF
65 #define MAX_LEGAL_UNICODE 0x10FFFF
71 #define REPLACEMENT_CHARACTER 0xFFFD
77 #define SURROGATE_HIGH_START 0xD800
83 #define SURROGATE_HIGH_END 0xDBFF
89 #define SURROGATE_LOW_START 0xDC00
95 #define SURROGATE_LOW_END 0xDFFF
101 #define HANGUL_JAMO_FIRST 0x1100
107 #define HANGUL_JAMO_LAST 0x11FF
114 #define HANGUL_L_FIRST 0x1100
121 #define HANGUL_L_LAST 0x1112
127 #define HANGUL_L_COUNT 19
134 #define HANGUL_V_FIRST 0x1161
141 #define HANGUL_V_LAST 0x1175
147 #define HANGUL_V_COUNT 21
154 #define HANGUL_T_FIRST 0x11A7
161 #define HANGUL_T_LAST 0x11C2
167 #define HANGUL_T_COUNT 28
173 #define HANGUL_N_COUNT 588
179 #define HANGUL_S_FIRST 0xAC00
185 #define HANGUL_S_LAST 0xD7A3
191 #define HANGUL_S_COUNT 11172
200 extern const uint8_t codepoint_decoded_length[256];
209 uint8_t codepoint_encoded_length(
unicode_t codepoint);
222 uint8_t codepoint_write(
unicode_t encoded,
char** target,
size_t* targetSize);
233 uint8_t codepoint_read(
const char* input,
size_t inputSize,
unicode_t* decoded);
uint32_t unicode_t
Unicode codepoint.
Definition: utf8rewind.h:178
Public interface for UTF-8 functions.