Path: blob/master/thirdparty/pcre2/src/pcre2_chartables.c
9898 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#ifdef HAVE_CONFIG_H22#include "config.h"23#endif2425#include "pcre2_internal.h"2627const uint8_t PRIV(default_tables)[] = {2829/* This table is a lower casing table. */30310, 1, 2, 3, 4, 5, 6, 7,328, 9, 10, 11, 12, 13, 14, 15,3316, 17, 18, 19, 20, 21, 22, 23,3424, 25, 26, 27, 28, 29, 30, 31,3532, 33, 34, 35, 36, 37, 38, 39,3640, 41, 42, 43, 44, 45, 46, 47,3748, 49, 50, 51, 52, 53, 54, 55,3856, 57, 58, 59, 60, 61, 62, 63,3964, 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, 91, 92, 93, 94, 95,4396, 97, 98, 99,100,101,102,103,44104,105,106,107,108,109,110,111,45112,113,114,115,116,117,118,119,46120,121,122,123,124,125,126,127,47128,129,130,131,132,133,134,135,48136,137,138,139,140,141,142,143,49144,145,146,147,148,149,150,151,50152,153,154,155,156,157,158,159,51160,161,162,163,164,165,166,167,52168,169,170,171,172,173,174,175,53176,177,178,179,180,181,182,183,54184,185,186,187,188,189,190,191,55192,193,194,195,196,197,198,199,56200,201,202,203,204,205,206,207,57208,209,210,211,212,213,214,215,58216,217,218,219,220,221,222,223,59224,225,226,227,228,229,230,231,60232,233,234,235,236,237,238,239,61240,241,242,243,244,245,246,247,62248,249,250,251,252,253,254,255,6364/* This table is a case flipping table. */65660, 1, 2, 3, 4, 5, 6, 7,678, 9, 10, 11, 12, 13, 14, 15,6816, 17, 18, 19, 20, 21, 22, 23,6924, 25, 26, 27, 28, 29, 30, 31,7032, 33, 34, 35, 36, 37, 38, 39,7140, 41, 42, 43, 44, 45, 46, 47,7248, 49, 50, 51, 52, 53, 54, 55,7356, 57, 58, 59, 60, 61, 62, 63,7464, 97, 98, 99,100,101,102,103,75104,105,106,107,108,109,110,111,76112,113,114,115,116,117,118,119,77120,121,122, 91, 92, 93, 94, 95,7896, 65, 66, 67, 68, 69, 70, 71,7972, 73, 74, 75, 76, 77, 78, 79,8080, 81, 82, 83, 84, 85, 86, 87,8188, 89, 90,123,124,125,126,127,82128,129,130,131,132,133,134,135,83136,137,138,139,140,141,142,143,84144,145,146,147,148,149,150,151,85152,153,154,155,156,157,158,159,86160,161,162,163,164,165,166,167,87168,169,170,171,172,173,174,175,88176,177,178,179,180,181,182,183,89184,185,186,187,188,189,190,191,90192,193,194,195,196,197,198,199,91200,201,202,203,204,205,206,207,92208,209,210,211,212,213,214,215,93216,217,218,219,220,221,222,223,94224,225,226,227,228,229,230,231,95232,233,234,235,236,237,238,239,96240,241,242,243,244,245,246,247,97248,249,250,251,252,253,254,255,9899/* This table contains bit maps for various character classes. Each map is 32100bytes long and the bits run from the least significant end of each byte. The101classes that have their own maps are: space, xdigit, digit, upper, lower, word,102graph, print, punct, and cntrl. Other classes are built from combinations. */1031040x00,0x3e,0x00,0x00,0x01,0x00,0x00,0x00, /* space */1050x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1060x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1070x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1081090x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, /* xdigit */1100x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,1110x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1120x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1131140x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, /* digit */1150x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1160x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1170x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1181190x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* upper */1200xfe,0xff,0xff,0x07,0x00,0x00,0x00,0x00,1210x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1220x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1231240x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* lower */1250x00,0x00,0x00,0x00,0xfe,0xff,0xff,0x07,1260x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1270x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1281290x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03, /* word */1300xfe,0xff,0xff,0x87,0xfe,0xff,0xff,0x07,1310x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1320x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1331340x00,0x00,0x00,0x00,0xfe,0xff,0xff,0xff, /* graph */1350xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,1360x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1370x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1381390x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff, /* print */1400xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,1410x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1420x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1431440x00,0x00,0x00,0x00,0xfe,0xff,0x00,0xfc, /* punct */1450x01,0x00,0x00,0xf8,0x01,0x00,0x00,0x78,1460x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1470x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1481490xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00, /* cntrl */1500x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,1510x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,1520x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,153154/* This table identifies various classes of character by individual bits:1550x01 white space character1560x02 letter1570x04 lower case letter1580x08 decimal digit1590x10 word (alphanumeric or '_')160*/1611620x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 */1630x00,0x01,0x01,0x01,0x01,0x01,0x00,0x00, /* 8- 15 */1640x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 16- 23 */1650x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */1660x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - ' */1670x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ( - / */1680x18,0x18,0x18,0x18,0x18,0x18,0x18,0x18, /* 0 - 7 */1690x18,0x18,0x00,0x00,0x00,0x00,0x00,0x00, /* 8 - ? */1700x00,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* @ - G */1710x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* H - O */1720x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* P - W */1730x12,0x12,0x12,0x00,0x00,0x00,0x00,0x10, /* X - _ */1740x00,0x16,0x16,0x16,0x16,0x16,0x16,0x16, /* ` - g */1750x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16, /* h - o */1760x16,0x16,0x16,0x16,0x16,0x16,0x16,0x16, /* p - w */1770x16,0x16,0x16,0x00,0x00,0x00,0x00,0x00, /* x -127 */1780x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 128-135 */1790x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 136-143 */1800x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144-151 */1810x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 152-159 */1820x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160-167 */1830x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 168-175 */1840x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 176-183 */1850x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */1860x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 192-199 */1870x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 200-207 */1880x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 208-215 */1890x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 216-223 */1900x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 224-231 */1910x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 232-239 */1920x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 240-247 */1930x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/* 248-255 */194195/* End of pcre2_chartables.c */196197198