diff options
| author | Mattias Andrée <m@maandree.se> | 2025-12-21 09:53:48 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2025-12-21 09:53:48 +0100 |
| commit | 15904ad51325426bcb3b8e87e714584e437417b7 (patch) | |
| tree | ef41e227769654a5b28b6e55d040200313cc57ea /libcmap.h | |
| parent | First commit (diff) | |
| download | libcmap-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |
