Improve docs
[platform/upstream/glib.git] / glib / pcre / pcre_chartables.c
1 /* This file is autogenerated by ../update-pcre/update.sh during
2  * the update of the local copy of PCRE.
3  */
4 /*************************************************
5 *      Perl-Compatible Regular Expressions       *
6 *************************************************/
7
8 /* This file contains character tables that are used when no external tables
9 are passed to PCRE by the application that calls it. The tables are used only
10 for characters whose code values are less than 256.
11
12 This is a default version of the tables that assumes ASCII encoding. A program
13 called dftables (which is distributed with PCRE) can be used to build
14 alternative versions of this file. This is necessary if you are running in an
15 EBCDIC environment, or if you want to default to a different encoding, for
16 example ISO-8859-1. When dftables is run, it creates these tables in the
17 current locale. If PCRE is configured with --enable-rebuild-chartables, this
18 happens automatically.
19
20 The following #includes are present because without the gcc 4.x may remove the
21 array definition from the final binary if PCRE is built into a static library
22 and dead code stripping is activated. This leads to link errors. Pulling in the
23 header ensures that the array gets flagged as "someone outside this compilation
24 unit might reference this" and so it will always be supplied to the linker. */
25
26 #ifdef HAVE_CONFIG_H
27 #include "config.h"
28 #endif
29
30 #include "pcre_internal.h"
31
32 const unsigned char _pcre_default_tables[] = {
33
34 /* This table is a lower casing table. */
35
36     0,  1,  2,  3,  4,  5,  6,  7,
37     8,  9, 10, 11, 12, 13, 14, 15,
38    16, 17, 18, 19, 20, 21, 22, 23,
39    24, 25, 26, 27, 28, 29, 30, 31,
40    32, 33, 34, 35, 36, 37, 38, 39,
41    40, 41, 42, 43, 44, 45, 46, 47,
42    48, 49, 50, 51, 52, 53, 54, 55,
43    56, 57, 58, 59, 60, 61, 62, 63,
44    64, 97, 98, 99,100,101,102,103,
45   104,105,106,107,108,109,110,111,
46   112,113,114,115,116,117,118,119,
47   120,121,122, 91, 92, 93, 94, 95,
48    96, 97, 98, 99,100,101,102,103,
49   104,105,106,107,108,109,110,111,
50   112,113,114,115,116,117,118,119,
51   120,121,122,123,124,125,126,127,
52   128,129,130,131,132,133,134,135,
53   136,137,138,139,140,141,142,143,
54   144,145,146,147,148,149,150,151,
55   152,153,154,155,156,157,158,159,
56   160,161,162,163,164,165,166,167,
57   168,169,170,171,172,173,174,175,
58   176,177,178,179,180,181,182,183,
59   184,185,186,187,188,189,190,191,
60   192,193,194,195,196,197,198,199,
61   200,201,202,203,204,205,206,207,
62   208,209,210,211,212,213,214,215,
63   216,217,218,219,220,221,222,223,
64   224,225,226,227,228,229,230,231,
65   232,233,234,235,236,237,238,239,
66   240,241,242,243,244,245,246,247,
67   248,249,250,251,252,253,254,255,
68
69 /* This table is a case flipping table. */
70
71     0,  1,  2,  3,  4,  5,  6,  7,
72     8,  9, 10, 11, 12, 13, 14, 15,
73    16, 17, 18, 19, 20, 21, 22, 23,
74    24, 25, 26, 27, 28, 29, 30, 31,
75    32, 33, 34, 35, 36, 37, 38, 39,
76    40, 41, 42, 43, 44, 45, 46, 47,
77    48, 49, 50, 51, 52, 53, 54, 55,
78    56, 57, 58, 59, 60, 61, 62, 63,
79    64, 97, 98, 99,100,101,102,103,
80   104,105,106,107,108,109,110,111,
81   112,113,114,115,116,117,118,119,
82   120,121,122, 91, 92, 93, 94, 95,
83    96, 65, 66, 67, 68, 69, 70, 71,
84    72, 73, 74, 75, 76, 77, 78, 79,
85    80, 81, 82, 83, 84, 85, 86, 87,
86    88, 89, 90,123,124,125,126,127,
87   128,129,130,131,132,133,134,135,
88   136,137,138,139,140,141,142,143,
89   144,145,146,147,148,149,150,151,
90   152,153,154,155,156,157,158,159,
91   160,161,162,163,164,165,166,167,
92   168,169,170,171,172,173,174,175,
93   176,177,178,179,180,181,182,183,
94   184,185,186,187,188,189,190,191,
95   192,193,194,195,196,197,198,199,
96   200,201,202,203,204,205,206,207,
97   208,209,210,211,212,213,214,215,
98   216,217,218,219,220,221,222,223,
99   224,225,226,227,228,229,230,231,
100   232,233,234,235,236,237,238,239,
101   240,241,242,243,244,245,246,247,
102   248,249,250,251,252,253,254,255,
103
104 /* This table contains bit maps for various character classes. Each map is 32
105 bytes long and the bits run from the least significant end of each byte. The
106 classes that have their own maps are: space, xdigit, digit, upper, lower, word,
107 graph, print, punct, and cntrl. Other classes are built from combinations. */
108
109   0x00,0x3e,0x00,0x00,0x01,0x00,0x00,0x00,
110   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
111   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
112   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
113
114   0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03,
115   0x7e,0x00,0x00,0x00,0x7e,0x00,0x00,0x00,
116   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
117   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
118
119   0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03,
120   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
121   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
122   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
123
124   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
125   0xfe,0xff,0xff,0x07,0x00,0x00,0x00,0x00,
126   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
127   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
128
129   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
130   0x00,0x00,0x00,0x00,0xfe,0xff,0xff,0x07,
131   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
132   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
133
134   0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x03,
135   0xfe,0xff,0xff,0x87,0xfe,0xff,0xff,0x07,
136   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
137   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
138
139   0x00,0x00,0x00,0x00,0xfe,0xff,0xff,0xff,
140   0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,
141   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
142   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
143
144   0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,
145   0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x7f,
146   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
147   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
148
149   0x00,0x00,0x00,0x00,0xfe,0xff,0x00,0xfc,
150   0x01,0x00,0x00,0xf8,0x01,0x00,0x00,0x78,
151   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
152   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
153
154   0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00,
155   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80,
156   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
157   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
158
159 /* This table identifies various classes of character by individual bits:
160   0x01   white space character
161   0x02   letter
162   0x04   decimal digit
163   0x08   hexadecimal digit
164   0x10   alphanumeric or '_'
165   0x80   regular expression metacharacter or binary zero
166 */
167
168   0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*   0-  7 */
169   0x00,0x01,0x01,0x00,0x01,0x01,0x00,0x00, /*   8- 15 */
170   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*  16- 23 */
171   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /*  24- 31 */
172   0x01,0x00,0x00,0x00,0x80,0x00,0x00,0x00, /*    - '  */
173   0x80,0x80,0x80,0x80,0x00,0x00,0x80,0x00, /*  ( - /  */
174   0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c, /*  0 - 7  */
175   0x1c,0x1c,0x00,0x00,0x00,0x00,0x00,0x80, /*  8 - ?  */
176   0x00,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /*  @ - G  */
177   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  H - O  */
178   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  P - W  */
179   0x12,0x12,0x12,0x80,0x80,0x00,0x80,0x10, /*  X - _  */
180   0x00,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /*  ` - g  */
181   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  h - o  */
182   0x12,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /*  p - w  */
183   0x12,0x12,0x12,0x80,0x80,0x00,0x00,0x00, /*  x -127 */
184   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 128-135 */
185   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 136-143 */
186   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144-151 */
187   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 152-159 */
188   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160-167 */
189   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 168-175 */
190   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 176-183 */
191   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */
192   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 192-199 */
193   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 200-207 */
194   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 208-215 */
195   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 216-223 */
196   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 224-231 */
197   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 232-239 */
198   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 240-247 */
199   0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/* 248-255 */
200
201 /* End of pcre_chartables.c */