From 73df1a0e994f6d777591d7dae7c14f291c876fb2 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Tue, 9 Apr 2024 19:01:28 +0200 Subject: Add uprop_get_nt() --- include/unicode/prop.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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); -- cgit v1.2.3