/* * c h r t a b . c */ /*)LIBRARY */ #ifdef DOCUMENTATION title chrtab Character characteristics table index Character characteristics table synopsis extern char chrtab[128]; OR #include description This file defines a global byte table called chrtab[] that can be used to determine the characteristics of various characters. See chrtab.h for details. .s Note that only characters without parity should be used as indices into chrtab[]. bugs The character table is, of course, dependent on the character code used. The one defined here is for ASCII characters. On Vax-11 C (native VAX/VMS), chrtab.h is searched for in C:, rather than the system-wide SYS$LIBRARY. author Jerry Leichter #endif /* )EDITLEVEL=07 * Edit history * 0.0 13-May-81 JSL Invention * 0.1 21-May-81 JSL Conversion to new documentation standard */ #ifdef vms #include "c:chrtab.h" #else #include #endif char chrtab[] = { 0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 /* \00-\07 */ ,0 ,WHITE ,WHITE ,WHITE ,WHITE ,0 ,0 ,0 /* \10-\17 */ ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 /* \20-\27 */ ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 /* \30-\37 */ ,WHITE ,MARK ,0 ,0 ,0 ,0 ,0 ,0 /* !"#$%&' */ ,0 ,0 ,0 ,0 ,MARK ,0 ,MARK ,0 /* ()*+,-./ */ ,DIGIT ,DIGIT ,DIGIT ,DIGIT ,DIGIT ,DIGIT ,DIGIT ,DIGIT /* 01234567 */ ,DIGIT ,DIGIT ,MARK ,MARK ,0 ,0 ,0 ,MARK /* 89:;<=>? */ ,0 ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER /* @ABCDEFG */ ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER /* HIJKLMNO */ ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER ,UPPER /* PQRSTUVW */ ,UPPER ,UPPER ,UPPER ,0 ,0 ,0 ,0 ,0 /* XYZ[\]^_ */ ,0 ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER /* `abcdefg */ ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER /* hijklmno */ ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER ,LOWER /* pqrstuvw */ ,LOWER ,LOWER ,LOWER ,0 ,0 ,0 ,0 ,0 /* xyz{|}~ */ };