home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / c / string.arc / _C2TYPE.C next >
Text File  |  1984-12-31  |  1KB  |  23 lines

  1. /*  File   : _c2type.c
  2.     Author : Richard A. O'Keefe.
  3.     Updated: 23 April 1984
  4.     Purpose: Map character codes to types
  5.  
  6.     The mapping used here is such that we can use it for converting
  7.     numbers expressed in a variety of radices to binary as well as for
  8.     classifying characters.
  9. */
  10.  
  11. char _c2type[129] =
  12.     {    37,            /* EOF == -1 */
  13.     37, 37, 37, 37, 37, 37, 37, 37, 37, 38, 39, 39, 39, 39, 37, 37,
  14.     37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
  15.     38, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36,
  16.     00, 01, 02, 03, 04, 05, 06, 07,  8,  9, 36, 36, 36, 36, 36, 36,
  17.     36, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  18.     25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 36, 36, 36, 36,
  19.     36, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  20.     25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 36, 36, 36, 36
  21.     };
  22.