1 /* character-class table */ 2 3 #define CCLASS_ALNUM 0 4 #define CCLASS_ALPHA 1 5 #define CCLASS_BLANK 2 6 #define CCLASS_CNTRL 3 7 #define CCLASS_DIGIT 4 8 #define CCLASS_GRAPH 5 9 #define CCLASS_LOWER 6 10 #define CCLASS_PRINT 7 11 #define CCLASS_PUNCT 8 12 #define CCLASS_SPACE 9 13 #define CCLASS_UPPER 10 14 #define CCLASS_XDIGIT 11 15 #define CCLASS_LAST 12 16 17 extern struct cclass { 18 const char *name; 19 const char *chars; 20 const char *multis; 21 uint mask; 22 } cclasses[]; 23