1 /*- 2 * Copyright (c) 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)ectype.h 8.1 (Berkeley) 06/06/93 8 */ 9 10 #define INCLUDED_ECTYPE 11 12 #define E_UPPER 0x01 13 #define E_LOWER 0x02 14 #define E_DIGIT 0x04 15 #define E_SPACE 0x08 16 #define E_PUNCT 0x10 17 #define E_PRINT 0x20 18 19 #define Eisalpha(c) (ectype[(c)&0xff]&(E_UPPER|E_LOWER)) 20 #define Eisupper(c) (ectype[(c)&0xff]&E_UPPER) 21 #define Eislower(c) (ectype[(c)&0xff]&E_LOWER) 22 #define Eisdigit(c) (ectype[(c)&0xff]&E_DIGIT) 23 #define Eisalnum(c) (ectype[(c)&0xff]&(E_UPPER|E_LOWER|E_DIGIT)) 24 #define Eisspace(c) (ectype[(c)&0xff]&E_SPACE) /* blank or null */ 25 #define Eispunct(c) (ectype[(c)&0xff]&E_PUNCT) 26 #define Eisprint(c) (ectype[(c)&0xff]&E_PRINT) 27