aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-21 17:56:59 +0100
committerMattias Andrée <m@maandree.se>2025-12-21 17:56:59 +0100
commit0b0adeb13f9832b2d8551b13c1507521a2c79628 (patch)
tree55904ed3368eaa1a6f93e51b1cf8486396385ae1
parentAdd libcmap_fprint_range, libcmap_print_range, libcmap_dprint_range (diff)
downloadlibcmap-0b0adeb13f9832b2d8551b13c1507521a2c79628.tar.gz
libcmap-0b0adeb13f9832b2d8551b13c1507521a2c79628.tar.bz2
libcmap-0b0adeb13f9832b2d8551b13c1507521a2c79628.tar.xz
libcmap_find_{block,script}: clarify relationship, of the return value, to libcmap_{block,script}_list
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--libcmap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcmap.h b/libcmap.h
index a04b38e..2d249c6 100644
--- a/libcmap.h
+++ b/libcmap.h
@@ -196,6 +196,9 @@ int libcmap_find_in_no_block(uint32_t codepoint, size_t *offset_out, size_t *sub
*
* If `NULL` is returned, *offset_out` will not be set
*
+ * The returned pointer (unless `NULL`) is `&libcmap_block_list[i]`
+ * for some non-negative `i` less than `libcmap_block_list_size`
+ *
* @seealso libcmap_find_in_no_block
* @seealso libcmap_find_script
*/
@@ -222,6 +225,9 @@ const struct libcmap_block *libcmap_find_block(uint32_t codepoint, size_t *offse
*
* If 0 is returned, `*offset_out` and `*subrange_out` will not be set
*
+ * The returned pointer (unless `NULL`) is `&libcmap_script_list[i]`
+ * for some non-negative `i` less than `libcmap_script_list_size`
+ *
* @seealso libcmap_find_block
*/
const struct libcmap_script *libcmap_find_script(uint32_t codepoint, size_t *offset_out, size_t *subrange_out);