aboutsummaryrefslogtreecommitdiff
path: root/include/unicode
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-21 19:46:29 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-21 19:46:29 +0200
commita04d1334a968649b1da36eb640d5d9d35eb3f29d (patch)
tree46f2d89c3d40953942eaf70c75a44fe6a69c9e71 /include/unicode
parent5b14562e05457d96a6524b5aa2e533e69cf30fb2 (diff)
Add uprop_get_wb()
Diffstat (limited to 'include/unicode')
-rw-r--r--include/unicode/prop.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/include/unicode/prop.h b/include/unicode/prop.h
index 05e16a2..358e0fd 100644
--- a/include/unicode/prop.h
+++ b/include/unicode/prop.h
@@ -1045,6 +1045,32 @@ enum uprop_vo {
VO_U, /* Upright */
};
+enum uprop_wb {
+ WB_XX = 0, /* Other */
+ WB_CR, /* CR */
+ WB_DQ, /* Double Quote */
+ WB_EB, /* E Base */
+ WB_EBG, /* E Base GAZ */
+ WB_EM, /* E Modifier */
+ WB_EX, /* ExtendNumLet */
+ WB_EXTEND, /* Extend */
+ WB_FO, /* Format */
+ WB_GAZ, /* Glue After Zwj */
+ WB_HL, /* Hebrew Letter */
+ WB_KA, /* Katakana */
+ WB_LE, /* ALetter */
+ WB_LF, /* LF */
+ WB_MB, /* MidNumLet */
+ WB_ML, /* MidLetter */
+ WB_MN, /* MidNum */
+ WB_NL, /* Newline */
+ WB_NU, /* Numeric */
+ WB_RI, /* Regional Indicator */
+ WB_SQ, /* Single Quote */
+ WB_WSEGSPACE, /* WSegSpace */
+ WB_ZWJ, /* ZWJ */
+};
+
/* Not a Unicode property; but a nice-to-have */
[[_mlib_pure]] struct u8view uprop_blkname(enum uprop_blk);
@@ -1072,6 +1098,7 @@ enum uprop_vo {
[[_mlib_pure]] enum uprop_nt uprop_get_nt(rune);
[[_mlib_pure]] enum uprop_sc uprop_get_sc(rune);
[[_mlib_pure]] enum uprop_vo uprop_get_vo(rune);
+[[_mlib_pure]] enum uprop_wb uprop_get_wb(rune);
[[_mlib_pure]] rune uprop_get_bmg(rune);
[[_mlib_pure]] rune uprop_get_bpb(rune);
[[_mlib_pure]] rune uprop_get_equideo(rune);