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 REPLACEMENT_CHARACTER_STRING "\xEF\xBF\xBD"
83 #define REPLACEMENT_CHARACTER_STRING_LENGTH 3
89 #define SURROGATE_HIGH_START 0xD800
95 #define SURROGATE_HIGH_END 0xDBFF
101 #define SURROGATE_LOW_START 0xDC00
107 #define SURROGATE_LOW_END 0xDFFF
113 #define HANGUL_JAMO_FIRST 0x1100
119 #define HANGUL_JAMO_LAST 0x11FF
126 #define HANGUL_L_FIRST 0x1100
133 #define HANGUL_L_LAST 0x1112
139 #define HANGUL_L_COUNT 19
146 #define HANGUL_V_FIRST 0x1161
153 #define HANGUL_V_LAST 0x1175
159 #define HANGUL_V_COUNT 21
166 #define HANGUL_T_FIRST 0x11A7
173 #define HANGUL_T_LAST 0x11C2
179 #define HANGUL_T_COUNT 28
185 #define HANGUL_N_COUNT 588
191 #define HANGUL_S_FIRST 0xAC00
197 #define HANGUL_S_LAST 0xD7A3
203 #define HANGUL_S_COUNT 11172
212 extern const uint8_t codepoint_decoded_length[256];
225 uint8_t codepoint_write(
unicode_t encoded,
char** target,
size_t* targetSize);
236 uint8_t codepoint_read(
const char* input,
size_t inputSize,
unicode_t* decoded);
uint32_t unicode_t
UTF-32 encoded code point.
Definition: utf8rewind.h:235
Public interface for UTF-8 functions.