diff options
Diffstat (limited to 'lib/unicode/prop/uprop_is_ahex.c')
-rw-r--r-- | lib/unicode/prop/uprop_is_ahex.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/unicode/prop/uprop_is_ahex.c b/lib/unicode/prop/uprop_is_ahex.c new file mode 100644 index 0000000..21dcd97 --- /dev/null +++ b/lib/unicode/prop/uprop_is_ahex.c @@ -0,0 +1,21 @@ +/* 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 constexpr bitset(bs, LATIN1_MAX) = { + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03, + 0x7E, 0x00, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +}; + +bool +uprop_is_ahex(rune ch) +{ + return ch <= LATIN1_MAX && TESTBIT(bs, ch); +} |