home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pcre34.zip / PCRE34S.ZIP / vacpp4 / chartables.c next >
Text File  |  2000-11-08  |  7KB  |  184 lines

  1. /*************************************************
  2. *      Perl-Compatible Regular Expressions       *
  3. *************************************************/
  4.  
  5. /* This file is automatically written by the dftables auxiliary 
  6. program. If you edit it by hand, you might like to edit the Makefile to 
  7. prevent its ever being regenerated.
  8.  
  9. This file is #included in the compilation of pcre.c to build the default
  10. character tables which are used when no tables are passed to the compile
  11. function. */
  12.  
  13. static unsigned char pcre_default_tables[] = {
  14.  
  15. /* This table is a lower casing table. */
  16.  
  17.     0,  1,  2,  3,  4,  5,  6,  7,
  18.     8,  9, 10, 11, 12, 13, 14, 15,
  19.    16, 17, 18, 19, 20, 21, 22, 23,
  20.    24, 25, 26, 27, 28, 29, 30, 31,
  21.    32, 33, 34, 35, 36, 37, 38, 39,
  22.    40, 41, 42, 43, 44, 45, 46, 47,
  23.    48, 49, 50, 51, 52, 53, 54, 55,
  24.    56, 57, 58, 59, 60, 61, 62, 63,
  25.    64, 97, 98, 99,100,101,102,103,
  26.   104,105,106,107,108,109,110,111,
  27.   112,113,114,115,116,117,118,119,
  28.   120,121,122, 91, 92, 93, 94, 95,
  29.    96, 97, 98, 99,100,101,102,103,
  30.   104,105,106,107,108,109,110,111,
  31.   112,113,114,115,116,117,118,119,
  32.   120,121,122,123,124,125,126,127,
  33.   128,129,130,131,132,133,134,135,
  34.   136,137,138,139,140,141,142,143,
  35.   144,145,146,147,148,149,150,151,
  36.   152,153,154,155,156,157,158,159,
  37.   160,161,162,163,164,165,166,167,
  38.   168,169,170,171,172,173,174,175,
  39.   176,177,178,179,180,181,182,183,
  40.   184,185,186,187,188,189,190,191,
  41.   192,193,194,195,196,197,198,199,
  42.   200,201,202,203,204,205,206,207,
  43.   208,209,210,211,212,213,214,215,
  44.   216,217,218,219,220,221,222,223,
  45.   224,225,226,227,228,229,230,231,
  46.   232,233,234,235,236,237,238,239,
  47.   240,241,242,243,244,245,246,247,
  48.   248,249,250,251,252,253,254,255,
  49.  
  50. /* This table is a case flipping table. */
  51.  
  52.     0,  1,  2,  3,  4,  5,  6,  7,
  53.     8,  9, 10, 11, 12, 13, 14, 15,
  54.    16, 17, 18, 19, 20, 21, 22, 23,
  55.    24, 25, 26, 27, 28, 29, 30, 31,
  56.    32, 33, 34, 35, 36, 37, 38, 39,
  57.    40, 41, 42, 43, 44, 45, 46, 47,
  58.    48, 49, 50, 51, 52, 53, 54, 55,
  59.    56, 57, 58, 59, 60, 61, 62, 63,
  60.    64, 97, 98, 99,100,101,102,103,
  61.   104,105,106,107,108,109,110,111,
  62.   112,113,114,115,116,117,118,119,
  63.   120,121,122, 91, 92, 93, 94, 95,
  64.    96, 65, 66, 67, 68, 69, 70, 71,
  65.    72, 73, 74, 75, 76, 77, 78, 79,
  66.    80, 81, 82, 83, 84, 85, 86, 87,
  67.    88, 89, 90,123,124,125,126,127,
  68.   128,129,130,131,132,133,134,135,
  69.   136,137,138,139,140,141,142,143,
  70.   144,145,146,147,148,149,150,151,
  71.   152,153,154,155,156,157,158,159,
  72.   160,161,162,163,164,165,166,167,
  73.   168,169,170,171,172,173,174,175,
  74.   176,177,178,179,180,181,182,183,
  75.   184,185,186,187,188,189,190,191,
  76.   192,193,194,195,196,197,198,199,
  77.   200,201,202,203,204,205,206,207,
  78.   208,209,210,211,212,213,214,215,
  79.   216,217,218,219,220,221,222,223,
  80.   224,225,226,227,228,229,230,231,
  81.   232,233,234,235,236,237,238,239,
  82.   240,241,242,243,244,245,246,247,
  83.   248,249,250,251,252,253,254,255,
  84.  
  85. /* This table contains bit maps for various character classes.
  86. Each map is 32 bytes long and the bits run from the least
  87. significant end of each byte. The classes that have their own
  88. maps are: space, xdigit, digit, upper, lower, word, graph
  89. print, punct, and cntrl. Other classes are built from combinations. */
  90.  
  91.   0x00,0x3e,0x00,0x00,0x01,0x00,0x00,0x00,
  92.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  93.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  94.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  95.  
  96.   0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03,
  97.   0x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,
  98.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  99.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  100.  
  101.   0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03,
  102.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  103.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  104.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  105.  
  106.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  107.   0xfe,0xff,0xff,0x07,0x00,0x00,0x00,0x00,
  108.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  109.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  110.  
  111.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  112.   0x00,0x00,0x00,0x00,0xfe,0xff,0xff,0x07,
  113.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  114.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  115.  
  116.   0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03,
  117.   0xfe,0xff,0xff,0x87,0xfe,0xff,0xff,0x07,
  118.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  119.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  120.  
  121.   0x00,0x00,0x00,0x00,0xfe,0xff,0xff,0xff,
  122.   0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,
  123.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  124.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  125.  
  126.   0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,
  127.   0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,
  128.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  129.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  130.  
  131.   0x00,0x00,0x00,0x00,0xfe,0xff,0x00,0xfc,
  132.   0x01,0x00,0x00,0xf8,0x01,0x00,0x00,0x78,
  133.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  134.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  135.  
  136.   0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00,
  137.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
  138.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  139.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
  140.  
  141. /* This table identifies various classes of character by individual bits:
  142.   0x01   white space character
  143.   0x02   letter
  144.   0x04   decimal digit
  145.   0x08   hexadecimal digit
  146.   0x10   alphanumeric or '_'
  147.   0x80   regular expression metacharacter or binary zero
  148. */
  149.  
  150.   0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*   0-  7 */
  151.   0x00,0x01,0x01,0x01,0x01,0x01,0x00,0x00, /*   8- 15 */
  152.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*  16- 23 */
  153.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*  24- 31 */
  154.   0x01,0x00,0x00,0x00,0x80,0x00,0x00,0x00, /*    - '  */
  155.   0x80,0x80,0x80,0x80,0x00,0x00,0x80,0x00, /*  ( - /  */
  156.   0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c, /*  0 - 7  */
  157.   0x1c,0x1c,0x00,0x00,0x00,0x00,0x00,0x80, /*  8 - ?  */
  158.   0x00,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /*  @ - G  */
  159.   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  H - O  */
  160.   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  P - W  */
  161.   0x12,0x12,0x12,0x80,0x00,0x00,0x80,0x10, /*  X - _  */
  162.   0x00,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /*  ` - g  */
  163.   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  h - o  */
  164.   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  p - w  */
  165.   0x12,0x12,0x12,0x80,0x80,0x00,0x00,0x00, /*  x -127 */
  166.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 128-135 */
  167.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 136-143 */
  168.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144-151 */
  169.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 152-159 */
  170.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160-167 */
  171.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 168-175 */
  172.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 176-183 */
  173.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */
  174.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 192-199 */
  175.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 200-207 */
  176.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 208-215 */
  177.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 216-223 */
  178.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 224-231 */
  179.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 232-239 */
  180.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 240-247 */
  181.   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/* 248-255 */
  182.  
  183. /* End of chartables.c */
  184.