sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

iscntrlrune.c (304B)


      1 /* Automatically generated by mkrunetype.awk */
      2 #include <stdlib.h>
      3 
      4 #include "../utf.h"
      5 #include "runetype.h"
      6 
      7 static Rune cntrl2[][2] = {
      8 	{ 0x0000, 0x001F },
      9 	{ 0x007F, 0x009F },
     10 };
     11 
     12 int
     13 iscntrlrune(Rune r)
     14 {
     15 	if(bsearch(&r, cntrl2, nelem(cntrl2), sizeof *cntrl2, &rune2cmp))
     16 		return 1;
     17 	return 0;
     18 }