aboutsummaryrefslogtreecommitdiffstats
path: root/libcmap.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-10-17 23:52:03 +0200
committerMattias Andrée <m@maandree.se>2026-10-17 23:52:03 +0200
commit91ecf7cc0e0aa185495c7342207099b6f13702ff (patch)
tree5a156b73b2615066d6dc6b6642ac11bbc53b07fe /libcmap.h
parentm (diff)
downloadlibcmap-91ecf7cc0e0aa185495c7342207099b6f13702ff.tar.gz
libcmap-91ecf7cc0e0aa185495c7342207099b6f13702ff.tar.bz2
libcmap-91ecf7cc0e0aa185495c7342207099b6f13702ff.tar.xz
Add to codepoint data whether the codepoint is a character or not
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--libcmap.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libcmap.h b/libcmap.h
index 50d2146..0f765a1 100644
--- a/libcmap.h
+++ b/libcmap.h
@@ -76,6 +76,11 @@ enum libcmap_general_category {
LIBCMAP_GENERAL_CATEGORY_OTHER_FORMAT,
LIBCMAP_GENERAL_CATEGORY_OTHER_SURROGATE,
LIBCMAP_GENERAL_CATEGORY_OTHER_PRIVATE_USE,
+
+ /**
+ * This category has two subcategories: noncharacter and reserved
+ * If .noncharacter it is not a character, otherwise it is reserved
+ */
LIBCMAP_GENERAL_CATEGORY_OTHER_NOT_ASSIGNED
};
@@ -240,7 +245,8 @@ struct libcmap_codepoint_data {
uint32_t simple_titlecase_mapping : 21;
uint32_t decomposition_mapping_size : 6;
uint32_t bidirectional_mirrored : 1;
- uint32_t : 4;
+ uint32_t noncharacter : 1;
+ uint32_t : 3;
};