gobject: Clean up logic in property checks
[glib.git] / glib / update-pcre / digitab.patch
bloba745fbb4222f2e95f489b0fb00cc842923e681d7
1 --- pcre_compile.c 2006-10-10 12:00:00.000000000 +0200
2 +++ pcre_compile.c 2006-10-10 12:00:00.000000000 +0200
3 @@ -246,130 +246,6 @@ static const char *error_texts[] = {
4 };
7 -/* Table to identify digits and hex digits. This is used when compiling
8 -patterns. Note that the tables in chartables are dependent on the locale, and
9 -may mark arbitrary characters as digits - but the PCRE compiling code expects
10 -to handle only 0-9, a-z, and A-Z as digits when compiling. That is why we have
11 -a private table here. It costs 256 bytes, but it is a lot faster than doing
12 -character value tests (at least in some simple cases I timed), and in some
13 -applications one wants PCRE to compile efficiently as well as match
14 -efficiently.
16 -For convenience, we use the same bit definitions as in chartables:
18 - 0x04 decimal digit
19 - 0x08 hexadecimal digit
21 -Then we can use ctype_digit and ctype_xdigit in the code. */
23 -#if !EBCDIC /* This is the "normal" case, for ASCII systems */
24 -static const unsigned char digitab[] =
25 - {
26 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 */
27 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 8- 15 */
28 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 16- 23 */
29 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */
30 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - ' */
31 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ( - / */
32 - 0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c, /* 0 - 7 */
33 - 0x0c,0x0c,0x00,0x00,0x00,0x00,0x00,0x00, /* 8 - ? */
34 - 0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x00, /* @ - G */
35 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* H - O */
36 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* P - W */
37 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* X - _ */
38 - 0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x00, /* ` - g */
39 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* h - o */
40 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* p - w */
41 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* x -127 */
42 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 128-135 */
43 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 136-143 */
44 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144-151 */
45 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 152-159 */
46 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160-167 */
47 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 168-175 */
48 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 176-183 */
49 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */
50 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 192-199 */
51 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 200-207 */
52 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 208-215 */
53 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 216-223 */
54 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 224-231 */
55 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 232-239 */
56 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 240-247 */
57 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};/* 248-255 */
59 -#else /* This is the "abnormal" case, for EBCDIC systems */
60 -static const unsigned char digitab[] =
61 - {
62 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 0- 7 0 */
63 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 8- 15 */
64 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 16- 23 10 */
65 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */
66 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 32- 39 20 */
67 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 40- 47 */
68 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 48- 55 30 */
69 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 56- 63 */
70 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - 71 40 */
71 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 72- | */
72 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* & - 87 50 */
73 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 88- ¬ */
74 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - -103 60 */
75 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 104- ? */
76 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 112-119 70 */
77 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 120- " */
78 - 0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x00, /* 128- g 80 */
79 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* h -143 */
80 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 144- p 90 */
81 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* q -159 */
82 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 160- x A0 */
83 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* y -175 */
84 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ^ -183 B0 */
85 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 184-191 */
86 - 0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x00, /* { - G C0 */
87 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* H -207 */
88 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* } - P D0 */
89 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* Q -223 */
90 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* \ - X E0 */
91 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* Y -239 */
92 - 0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c, /* 0 - 7 F0 */
93 - 0x0c,0x0c,0x00,0x00,0x00,0x00,0x00,0x00};/* 8 -255 */
95 -static const unsigned char ebcdic_chartab[] = { /* chartable partial dup */
96 - 0x80,0x00,0x00,0x00,0x00,0x01,0x00,0x00, /* 0- 7 */
97 - 0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, /* 8- 15 */
98 - 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, /* 16- 23 */
99 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 24- 31 */
100 - 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00, /* 32- 39 */
101 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 40- 47 */
102 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 48- 55 */
103 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 56- 63 */
104 - 0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - 71 */
105 - 0x00,0x00,0x00,0x80,0x00,0x80,0x80,0x80, /* 72- | */
106 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* & - 87 */
107 - 0x00,0x00,0x00,0x80,0x80,0x80,0x00,0x00, /* 88- ¬ */
108 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* - -103 */
109 - 0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x80, /* 104- ? */
110 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 112-119 */
111 - 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* 120- " */
112 - 0x00,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /* 128- g */
113 - 0x12,0x12,0x00,0x00,0x00,0x00,0x00,0x00, /* h -143 */
114 - 0x00,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* 144- p */
115 - 0x12,0x12,0x00,0x00,0x00,0x00,0x00,0x00, /* q -159 */
116 - 0x00,0x00,0x12,0x12,0x12,0x12,0x12,0x12, /* 160- x */
117 - 0x12,0x12,0x00,0x00,0x00,0x00,0x00,0x00, /* y -175 */
118 - 0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00, /* ^ -183 */
119 - 0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00, /* 184-191 */
120 - 0x80,0x1a,0x1a,0x1a,0x1a,0x1a,0x1a,0x12, /* { - G */
121 - 0x12,0x12,0x00,0x00,0x00,0x00,0x00,0x00, /* H -207 */
122 - 0x00,0x12,0x12,0x12,0x12,0x12,0x12,0x12, /* } - P */
123 - 0x12,0x12,0x00,0x00,0x00,0x00,0x00,0x00, /* Q -223 */
124 - 0x00,0x00,0x12,0x12,0x12,0x12,0x12,0x12, /* \ - X */
125 - 0x12,0x12,0x00,0x00,0x00,0x00,0x00,0x00, /* Y -239 */
126 - 0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c,0x1c, /* 0 - 7 */
127 - 0x1c,0x1c,0x00,0x00,0x00,0x00,0x00,0x00};/* 8 -255 */
128 -#endif
131 /* Definition to allow mutual recursion */
133 static BOOL