From f5268368fbfd88cb3259a8f4313abd06a1c57d70 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 4 May 2024 21:47:33 +0200 Subject: More 2-stage lookup tables --- include/unicode/prop.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/unicode/prop.h b/include/unicode/prop.h index 94382c0..322040b 100644 --- a/include/unicode/prop.h +++ b/include/unicode/prop.h @@ -1078,6 +1078,11 @@ enum uprop_sc : uint_least8_t { SC_ZYYY, /* Common */ }; +struct uprop_sc_view { + const enum uprop_sc *p; + size_t len; +}; + enum uprop_vo : uint_least8_t { VO_R, /* Rotated */ VO_TR, /* Transformed Rotated */ @@ -1114,7 +1119,6 @@ enum uprop_wb : uint_least8_t { /* Not a Unicode property; but a nice-to-have */ [[_mlib_pure]] struct u8view uprop_blkname(enum uprop_blk); -[[_mlib_pure]] const enum uprop_sc *uprop_get_scx(rune, size_t *); [[_mlib_pure]] double uprop_get_nv(rune); [[_mlib_pure]] enum uprop_age uprop_get_age(rune); [[_mlib_pure]] enum uprop_bc uprop_get_bc(rune); @@ -1155,6 +1159,7 @@ enum uprop_wb : uint_least8_t { [[_mlib_pure]] struct rview uprop_get_uc(rune, struct ucctx); [[_mlib_pure]] struct u8view uprop_get_na1(rune); [[_mlib_pure]] struct u8view uprop_get_na(rune); +[[_mlib_pure]] struct uprop_sc_view uprop_get_scx(rune); /* PROP PREDICATES START */ [[_mlib_pure]] bool uprop_is_ahex(rune); -- cgit v1.2.3