summaryrefslogblamecommitdiff
path: root/src/ctype/iswalpha.c
blob: d558faef47954bdc2ba7f84957e73fe969c31233 (plain) (tree)
1
2
3
4
5
6
7
8

                   
                                      


                  

                       




                                                                        
 
#include <wctype.h>

static const unsigned char table[] = {
#include "alpha.h"
};

int iswalpha(wint_t wc)
{
	if (wc<0x20000U)
		return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1;
	if (wc<0x2fffeU)
		return 1;
	return 0;
}