aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-05-04 21:47:33 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-05-04 21:47:33 +0200
commitf5268368fbfd88cb3259a8f4313abd06a1c57d70 (patch)
tree115c5c9678a7f4325343db5dcea34c25bdfacba9 /include
parent3c6ca49b23fd6a2df735e0eaf93432bfef3cba97 (diff)
More 2-stage lookup tables
Diffstat (limited to 'include')
-rw-r--r--include/unicode/prop.h7
1 files changed, 6 insertions, 1 deletions
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);