aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode/prop/uprop_is_ahex.c
blob: 21dcd97bd7a48333f8a6416bc89f779bbe4e33fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
}