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

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