aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode/prop/uprop_is_radical.c
blob: ff4a376415cee2868d33045bed07928e63563902 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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(0x002E80), RUNE_C(0x002E99)},
	{RUNE_C(0x002E9B), RUNE_C(0x002EF3)},
	{RUNE_C(0x002F00), RUNE_C(0x002FD5)},
};

__MLIB_DEFINE_BSEARCH_CONTAINS(lookup)

bool
uprop_is_radical(rune ch)
{
	return mlib_lookup_contains(ch);
}