aboutsummaryrefslogtreecommitdiffstats
path: root/libcmap.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-21 09:53:48 +0100
committerMattias Andrée <m@maandree.se>2025-12-21 09:53:48 +0100
commit15904ad51325426bcb3b8e87e714584e437417b7 (patch)
treeef41e227769654a5b28b6e55d040200313cc57ea /libcmap.h
parentFirst commit (diff)
downloadlibcmap-15904ad51325426bcb3b8e87e714584e437417b7.tar.gz
libcmap-15904ad51325426bcb3b8e87e714584e437417b7.tar.bz2
libcmap-15904ad51325426bcb3b8e87e714584e437417b7.tar.xz
Implement script and block listing
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libcmap.h')
-rw-r--r--libcmap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcmap.h b/libcmap.h
index 54e60cc..7ee5d74 100644
--- a/libcmap.h
+++ b/libcmap.h
@@ -26,11 +26,12 @@ struct libcmap_block {
struct libcmap_script {
const char *name;
- struct libcmap_range *ranges;
+ const struct libcmap_range *ranges;
size_t nranges;
};
+extern const struct libcmap_script libcmap_no_block;
extern const struct libcmap_block *const libcmap_block_list;
extern const size_t libcmap_block_list_size;
@@ -38,6 +39,7 @@ extern const struct libcmap_script *const libcmap_script_list;
extern const size_t libcmap_script_list_size;
+int libcmap_find_in_no_block(uint32_t codepoint, size_t *offset_out, size_t *subrange_out);
const struct libcmap_block *libcmap_find_block(uint32_t codepoint, size_t *offset_out);
const struct libcmap_script *libcmap_find_script(uint32_t codepoint, size_t *offset_out, size_t *subrange_out);