aboutsummaryrefslogtreecommitdiff
path: root/include/unicode
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-09 19:01:28 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-09 19:01:28 +0200
commit73df1a0e994f6d777591d7dae7c14f291c876fb2 (patch)
tree7a9080adec9a9473e08579cf480e8105f25b2b4d /include/unicode
parent13a5681b7b4528fed6f402bfca8eca505e175a77 (diff)
Add uprop_get_nt()
Diffstat (limited to 'include/unicode')
-rw-r--r--include/unicode/prop.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/unicode/prop.h b/include/unicode/prop.h
index 7325c8b..ab45bcf 100644
--- a/include/unicode/prop.h
+++ b/include/unicode/prop.h
@@ -48,8 +48,16 @@ enum [[clang::__flag_enum__]] uprop_gc : uint_fast32_t {
GC_Z = GC_ZL | GC_ZP | GC_ZS, /* Separator */
};
+enum uprop_nt {
+ NT_DE, /* Decimal */
+ NT_DI, /* Digit */
+ NT_NONE, /* None */
+ NT_NU, /* Numeric */
+};
+
[[__nodiscard__, __unsequenced__]] double uprop_get_nv(rune);
[[__nodiscard__, __unsequenced__]] enum uprop_gc uprop_get_gc(rune);
+[[__nodiscard__, __unsequenced__]] enum uprop_nt uprop_get_nt(rune);
/* PROP PREDICATES START */
[[__nodiscard__, __unsequenced__]] bool uprop_is_ahex(rune);