diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-15 19:35:15 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-15 19:35:15 +0200 |
commit | 1cb3a4df9ae337af30a3f798df54e369d4edd495 (patch) | |
tree | dc84db049bff281909774d93b4f7f7f837bff0cf /include/unicode | |
parent | 1bee46444b24c75a944251459a9ba57120db4d10 (diff) |
Add uprop_get_bc()
Diffstat (limited to 'include/unicode')
-rw-r--r-- | include/unicode/prop.h | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/include/unicode/prop.h b/include/unicode/prop.h index 7a357cc..f63c67b 100644 --- a/include/unicode/prop.h +++ b/include/unicode/prop.h @@ -41,7 +41,7 @@ struct ucctx { bool after_i : 1; /* After āiā */ }; -/* clang-format off */ +/* clang-format on */ enum uprop_age : uint_least16_t { AGE_NA = 0, /* Not Assigned */ @@ -87,6 +87,32 @@ uprop_age_minor(enum uprop_age a) return a & 0xFF; } +enum uprop_bc { + BC_AL, /* Arabic Letter */ + BC_AN, /* Arabic Number */ + BC_B, /* Paragraph Separator */ + BC_BN, /* Boundary Neutral */ + BC_CS, /* Common Separator */ + BC_EN, /* European Number */ + BC_ES, /* European Separator */ + BC_ET, /* European Terminator */ + BC_FSI, /* First Strong Isolate */ + BC_L, /* Left To Right */ + BC_LRE, /* Left To Right Embedding */ + BC_LRI, /* Left To Right Isolate */ + BC_LRO, /* Left To Right Override */ + BC_NSM, /* Nonspacing Mark */ + BC_ON, /* Other Neutral */ + BC_PDF, /* Pop Directional Format */ + BC_PDI, /* Pop Directional Isolate */ + BC_R, /* Right To Left */ + BC_RLE, /* Right To Left Embedding */ + BC_RLI, /* Right To Left Isolate */ + BC_RLO, /* Right To Left Override */ + BC_S, /* Segment Separator */ + BC_WS, /* White Space */ +}; + enum uprop_blk { BLK_NB = 0, /* No Block */ BLK_ADLAM, /* Adlam */ @@ -731,6 +757,7 @@ enum uprop_sc { [[__mlib_uprop_attrs]] double uprop_get_nv(rune); [[__mlib_uprop_attrs]] enum uprop_age uprop_get_age(rune); +[[__mlib_uprop_attrs]] enum uprop_bc uprop_get_bc(rune); [[__mlib_uprop_attrs]] enum uprop_blk uprop_get_blk(rune); [[__mlib_uprop_attrs]] enum uprop_bpt uprop_get_bpt(rune); [[__mlib_uprop_attrs]] enum uprop_dt uprop_get_dt(rune); |