aboutsummaryrefslogtreecommitdiff
path: root/lib/unicode/prop/uprop_is_nchar.c
blob: 7022d2e0a36deb26b27e50f77415099180bb460e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include "rune.h"
#include "unicode/prop.h"

bool
rprop_is_nchar(rune ch)
{
	return (ch >= 0xFDD0 && ch <= 0xFDEF)
	    || ((ch & 0xFFFE) == 0xFFFE
	        && (ch & RUNE_C(0xFF0000)) <= RUNE_C(0x0F0000));
}