-/* Automatically generated file, see scripts/make-unidata */
+/** @file lib/unidata.h
+ * @brief Unicode tables
+ *
+ * Automatically generated file, see scripts/make-unidata
+ *
+ * DO NOT EDIT.
+ */
#ifndef UNIDATA_H
#define UNIDATA_H
enum unicode_General_Category {
};
extern const char *const unicode_Sentence_Break_names[];
enum unicode_flags {
- unicode_normalize_before_casefold = 1
+ unicode_normalize_before_casefold = 1,
+ unicode_compatibility_decomposition = 2
};
struct unidata {
- const uint32_t *compat;
- const uint32_t *canon;
+ const uint32_t *decomp;
const uint32_t *casefold;
- int16_t upper_offset;
- int16_t lower_offset;
+ const uint32_t *composed;
unsigned char ccc;
char general_category;
uint8_t flags;
char sentence_break;
};
extern const struct unidata *const unidata[];
-#define UNICODE_NCHARS 195200
-#define UNICODE_MODULUS 128
+extern const struct unicode_utf8_row {
+ uint8_t count;
+ uint8_t min2, max2;
+} unicode_utf8_valid[];
+#define UNICODE_NCHARS 1114112
+#define UNICODE_MODULUS 16
+#define UNICODE_BREAK_START 196608
+#define UNICODE_BREAK_END 917504
+#define UNICODE_BREAK_TOP 918016
#endif