From 15904ad51325426bcb3b8e87e714584e437417b7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 21 Dec 2025 09:53:48 +0100 Subject: Implement script and block listing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libcmap.h') 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); -- cgit v1.3.1