Path: blob/master/thirdparty/pcre2/src/pcre2_chartables.c
21646 views
/*************************************************1* Perl-Compatible Regular Expressions *2*************************************************/34/* This file was automatically written by the pcre2_dftables auxiliary5program. It contains character tables that are used when no external6tables are passed to PCRE2 by the application that calls it. The tables7are used only for characters whose code values are less than 256, and8only relevant if not in UCP mode. */910/* This set of tables was written in the C locale. */1112/* The pcre2_ftables program (which is distributed with PCRE2) can be used13to build alternative versions of this file. This is necessary if you are14running in an EBCDIC environment, or if you want to default to a different15encoding, for example ISO-8859-1. When pcre2_dftables is run, it creates16these tables in the "C" locale by default. This happens automatically if17PCRE2 is configured with --enable-rebuild-chartables. However, you can run18pcre2_dftables manually with the -L option to build tables using the LC_ALL19locale. */2021#include "pcre2_internal.h"2223const uint8_t PRIV(default_tables)[] = {2425/* This table is a lower casing table. */26270, 1, 2, 3, 4, 5, 6, 7,288, 9, 10, 11, 12, 13, 14, 15,2916, 17, 18, 19, 20, 21, 22, 23,3024, 25, 26, 27, 28, 29, 30, 31,3132, 33, 34, 35, 36, 37, 38, 39,3240, 41, 42, 43, 44, 45, 46, 47,3348, 49, 50, 51, 52, 53, 54, 55,3456, 57, 58, 59, 60, 61, 62, 63,3564, 97, 98, 99,100,101,102,103,36104,105,106,107,108,109,110,111,37112,113,114,115,116,117,118,119,38120,121,122, 91, 92, 93, 94, 95,3996, 97, 98, 99,100,101,102,103,40104,105,106,107,108,109,110,111,41112,113,114,115,116,117,118,119,42120,121,122,123,124,125,126,127,43128,129,130,131,132,133,134,135,44136,137,138,139,140,141,142,143,45144,145,146,147,148,149,150,151,46152,153,154,155,156,157,158,159,47160,161,162,163,164,165,166,167,48168,169,170,171,172,173,174,175,49176,177,178,179,180,181,182,183,50184,185,186,187,188,189,190,191,51192,193,194,195,196,197,198,199,52200,201,202,203,204,205,206,207,53208,209,210,211,212,213,214,215,54216,217,218,219,220,221,222,223,55224,225,226,227,228,229,230,231,56232,233,234,235,236,237,238,239,57240,241,242,243,244,245,246,247,58248,249,250,251,252,253,254,255,5960/* This table is a case flipping table. */61620, 1, 2, 3, 4, 5, 6, 7,638, 9, 10, 11, 12, 13, 14, 15,6416, 17, 18, 19, 20, 21, 22, 23,6524, 25, 26, 27, 28, 29, 30, 31,6632, 33, 34, 35, 36, 37, 38, 39,6740, 41, 42, 43, 44, 45, 46, 47,6848, 49, 50, 51, 52, 53, 54, 55,6956, 57, 58, 59, 60, 61, 62, 63,7064, 97, 98, 99,100,101,102,103,71104,105,106,107,108,109,110,111,72112,113,114,115,116,117,118,119,73120,121,122, 91, 92, 93, 94, 95,7496, 65, 66, 67, 68, 69, 70, 71,7572, 73, 74, 75, 76, 77, 78, 79,7680, 81, 82, 83, 84, 85, 86, 87,7788, 89, 90,123,124,125,126,127,78128,129,130,131,132,133,134,135,79136,137,138,139,140,141,142,143,80144,145,146,147,148,149,150,151,81152,153,154,155,156,157,158,159,82160,161,162,163,164,165,166,167,83168,169,170,171,172,173,174,175,84176,177,178,179,180,181,182,183,85184,185,186,187,188,189,190,191,86192,193,194,195,196,197,198,199,87200,201,202,203,204,205,206,207,88208,209,210,211,212,213,214,215,89216,217,218,219,220,221,222,223,90224,225,226,227,228,229,230,231,91232,233,234,235,236,237,238,239,92240,241,242,243,244,245,246,247,93248,249,250,251,252,253,254,255,9495/* This table contains bit maps for various character classes. Each map is 3296bytes long and the bits run from the least significant end of each byte. The97classes that have their own maps are: space, xdigit, digit, upper, lower, word,98graph, print, punct, and cntrl. Other classes are built from combinations. */991000x00,0x3e,0x00,0x00,0x01,0x00,0x00,0x00, /* space */1010x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1020x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1030x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1041050x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, /* xdigit */1060x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,1070x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1080x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1091100x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, /* digit */1110x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1120x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1130x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1141150x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* upper */1160xfe,0xff,0xff,0x07,0x00,0x00,0x00,0x00,1170x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1180x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1191200x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* lower */1210x00,0x00,0x00,0x00,0xfe,0xff,0xff,0x07,1220x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1230x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1241250x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, /* word */1260xfe,0xff,0xff,0x87,0xfe,0xff,0xff,0x07,1270x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1280x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1291300x00,0x00,0x00,0x00,0xfe,0xff,0xff,0xff, /* graph */1310xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,1320x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1330x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1341350x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff, /* print */1360xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,1370x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1380x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1391400x00,0x00,0x00,0x00,0xfe,0xff,0x00,0xfc, /* punct */1410x01,0x00,0x00,0xf8,0x01,0x00,0x00,0x78,1420x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1430x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1441450xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00, /* cntrl */1460x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,1470x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1480x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,149150/* This table identifies various classes of character by individual bits:1510x01 white space character1520x02 letter1530x04 lower case letter1540x08 decimal digit1550x10 word (alphanumeric or '_')156*/1571580x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 */1590x00,0x01,0x01,0x01,0x01,0x01,0x00,0x00, /* 8- 15 */1600x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 16- 23 */1610x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */1620x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - ' */1630x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ( - / */1640x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, /* 0 - 7 */1650x18,0x18,0x00,0x00,0x00,0x00,0x00,0x00, /* 8 - ? */1660x00,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* @ - G */1670x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* H - O */1680x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* P - W */1690x12,0x12,0x12,0x00,0x00,0x00,0x00,0x10, /* X - _ */1700x00,0x16,0x16,0x16,0x16,0x16,0x16,0x16, /* ` - g */1710x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16, /* h - o */1720x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16, /* p - w */1730x16,0x16,0x16,0x00,0x00,0x00,0x00,0x00, /* x -127 */1740x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 128-135 */1750x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 136-143 */1760x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144-151 */1770x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 152-159 */1780x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160-167 */1790x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 168-175 */1800x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 176-183 */1810x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */1820x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 192-199 */1830x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 200-207 */1840x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 208-215 */1850x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 216-223 */1860x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 224-231 */1870x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 232-239 */1880x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 240-247 */1890x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/* 248-255 */190191/* End of pcre2_chartables.c */192193194