chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more space efficient unicode tables
[disorder]
/
lib
/
unidata.h
diff --git
a/lib/unidata.h
b/lib/unidata.h
index 3688a769e795be512fd4e599f8db4b6bee5a08dc..dbd15e6d41185ef9b3657e73fbd343553f1ab7da 100644
(file)
--- a/
lib/unidata.h
+++ b/
lib/unidata.h
@@
-81,8
+81,6
@@
struct unidata {
const uint32_t *compat;
const uint32_t *canon;
const uint32_t *casefold;
const uint32_t *compat;
const uint32_t *canon;
const uint32_t *casefold;
- int16_t upper_offset;
- int16_t lower_offset;
unsigned char ccc;
char general_category;
uint8_t flags;
unsigned char ccc;
char general_category;
uint8_t flags;
@@
-91,6
+89,9
@@
struct unidata {
char sentence_break;
};
extern const struct unidata *const unidata[];
char sentence_break;
};
extern const struct unidata *const unidata[];
-#define UNICODE_NCHARS 195200
-#define UNICODE_MODULUS 128
+#define UNICODE_NCHARS 1114112
+#define UNICODE_MODULUS 16
+#define UNICODE_BREAK_START 196608
+#define UNICODE_BREAK_END 917504
+#define UNICODE_BREAK_TOP 918016
#endif
#endif