From 4bba70f54e9a4ebd576f6a34075321223308e7b8 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 5 Apr 2024 14:36:41 +0200 Subject: Fix function name --- gen/prop/bool-props | 2 +- include/unicode/prop.h | 2 +- lib/unicode/prop/uprop_is_idbo.c | 24 ------------------------ lib/unicode/prop/uprop_is_idsb.c | 24 ++++++++++++++++++++++++ 4 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 lib/unicode/prop/uprop_is_idbo.c create mode 100644 lib/unicode/prop/uprop_is_idsb.c diff --git a/gen/prop/bool-props b/gen/prop/bool-props index 261caa6..fe06693 100755 --- a/gen/prop/bool-props +++ b/gen/prop/bool-props @@ -11,7 +11,7 @@ dep=Deprecated dia=Diacritic ext=Extender hex=Hex_Digit -idbo=IDS_Binary_Operator +idsb=IDS_Binary_Operator id_compat_math_continue=ID_Compat_Math_Continue id_compat_math_start=ID_Compat_Math_Start ideo=Ideographic diff --git a/include/unicode/prop.h b/include/unicode/prop.h index 291d41b..933e31a 100644 --- a/include/unicode/prop.h +++ b/include/unicode/prop.h @@ -79,10 +79,10 @@ enum [[clang::flag_enum]] uprop_gc : uint_fast32_t { [[__nodiscard__, __unsequenced__]] bool uprop_is_hex(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_id_compat_math_continue(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_id_compat_math_start(rune); -[[__nodiscard__, __unsequenced__]] bool uprop_is_idbo(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_idc(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_ideo(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_ids(rune); +[[__nodiscard__, __unsequenced__]] bool uprop_is_idsb(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_incb(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_loe(rune); [[__nodiscard__, __unsequenced__]] bool uprop_is_lower(rune); diff --git a/lib/unicode/prop/uprop_is_idbo.c b/lib/unicode/prop/uprop_is_idbo.c deleted file mode 100644 index 44f952e..0000000 --- a/lib/unicode/prop/uprop_is_idbo.c +++ /dev/null @@ -1,24 +0,0 @@ -/* This file is autogenerated by gen/prop/bool-props; DO NOT EDIT. */ - -#include "__bsearch.h" -#include "bitset.h" -#include "rune.h" -#include "unicode/prop.h" - -/* clang-format off */ - -static const struct { - rune lo, hi; -} lookup[] = { - {RUNE_C(0x002FF0), RUNE_C(0x002FF1)}, - {RUNE_C(0x002FF4), RUNE_C(0x002FFD)}, - {RUNE_C(0x0031EF), RUNE_C(0x0031EF)}, -}; - -__MLIB_DEFINE_BSEARCH_CONTAINS(lookup) - -bool -uprop_is_idbo(rune ch) -{ - return mlib_lookup_contains(ch); -} diff --git a/lib/unicode/prop/uprop_is_idsb.c b/lib/unicode/prop/uprop_is_idsb.c new file mode 100644 index 0000000..4ce977c --- /dev/null +++ b/lib/unicode/prop/uprop_is_idsb.c @@ -0,0 +1,24 @@ +/* This file is autogenerated by gen/prop/bool-props; DO NOT EDIT. */ + +#include "__bsearch.h" +#include "bitset.h" +#include "rune.h" +#include "unicode/prop.h" + +/* clang-format off */ + +static const struct { + rune lo, hi; +} lookup[] = { + {RUNE_C(0x002FF0), RUNE_C(0x002FF1)}, + {RUNE_C(0x002FF4), RUNE_C(0x002FFD)}, + {RUNE_C(0x0031EF), RUNE_C(0x0031EF)}, +}; + +__MLIB_DEFINE_BSEARCH_CONTAINS(lookup) + +bool +uprop_is_idsb(rune ch) +{ + return mlib_lookup_contains(ch); +} -- cgit v1.2.3