aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/lib/utf8/u8chkr.c
blob: 4510f168cb8fadbc8ad50ff5d5e042d98f7093f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include "rune.h"
#include "utf8.h"

bool
u8chkr(rune ch)
{
	return !((ch >= 0xD800 && ch <= 0xDFFF) || ch == 0xFFFE || ch == 0xFFFF
	         || ch > RUNE_MAX);
}