1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 23:43:33 +00:00
sbase/libutf/isprintrune.c
FRIGN 9418101293 Fix isprintrune()'s behaviour
I somehow missed this issue. A rune can not be smaller than the left
range-delimiter and bigger than the right range-delimiter at the
same time.
The real check has to check if either condition applies.
2015-02-15 16:27:45 +01:00

11 lines
220 B
C

/* Automatically generated by mkrunetype.awk */
#include "../utf.h"
#include "runetype.h"
int
isprintrune(Rune r)
{
return !iscntrlrune(r) && (r != 0x2028) && (r != 0x2029) &&
((r < 0xFFF9) || (r > 0xFFFB));
}