OSDN Git Service

Success build TortoiseMerge.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseMerge / libsvn_diff / ctype.c
1 /*\r
2  * ctype.c:  Character classification routines\r
3  *\r
4  * ====================================================================\r
5  * Copyright (c) 2000-2004 CollabNet.  All rights reserved.\r
6  *\r
7  * This software is licensed as described in the file COPYING, which\r
8  * you should have received as part of this distribution.  The terms\r
9  * are also available at http://subversion.tigris.org/license-1.html.\r
10  * If newer versions of this license are posted there, you may use a\r
11  * newer version instead, at your option.\r
12  *\r
13  * This software consists of voluntary contributions made by many\r
14  * individuals.  For exact contribution history, see the revision\r
15  * history and logs, available at http://subversion.tigris.org/.\r
16  * ====================================================================\r
17  */\r
18 \r
19 \r
20 \f\r
21 #include "svn_ctype.h"\r
22 \r
23 const apr_uint32_t svn_ctype_table_internal[256] =\r
24   {\r
25     /* **** DO NOT EDIT! ****\r
26        This table was generated by genctype.py, make changes there. */\r
27     /* nul */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
28     /* soh */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
29     /* stx */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
30     /* etx */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
31     /* eot */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
32     /* enq */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
33     /* ack */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
34     /* bel */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
35     /* bs  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
36     /* ht  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL | SVN_CTYPE_SPACE,\r
37     /* nl  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL | SVN_CTYPE_SPACE,\r
38     /* vt  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL | SVN_CTYPE_SPACE,\r
39     /* np  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL | SVN_CTYPE_SPACE,\r
40     /* cr  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL | SVN_CTYPE_SPACE,\r
41     /* so  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
42     /* si  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
43     /* dle */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
44     /* dc1 */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
45     /* dc2 */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
46     /* dc3 */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
47     /* dc4 */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
48     /* nak */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
49     /* syn */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
50     /* etb */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
51     /* can */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
52     /* em  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
53     /* sub */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
54     /* esc */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
55     /* fs  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
56     /* gs  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
57     /* rs  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
58     /* us  */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
59     /* sp  */ SVN_CTYPE_ASCII | SVN_CTYPE_SPACE,\r
60     /*  !  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
61     /*  "  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
62     /*  #  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
63     /*  $  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
64     /*  %  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
65     /*  &  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
66     /*  '  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
67     /*  (  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
68     /*  )  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
69     /*  *  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
70     /*  +  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
71     /*  ,  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
72     /*  -  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
73     /*  .  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
74     /*  /  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
75     /*  0  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
76     /*  1  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
77     /*  2  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
78     /*  3  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
79     /*  4  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
80     /*  5  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
81     /*  6  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
82     /*  7  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
83     /*  8  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
84     /*  9  */ SVN_CTYPE_ASCII | SVN_CTYPE_DIGIT,\r
85     /*  :  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
86     /*  ;  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
87     /*  <  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
88     /*  =  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
89     /*  >  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
90     /*  ?  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
91     /*  @  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
92     /*  A  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER | SVN_CTYPE_XALPHA,\r
93     /*  B  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER | SVN_CTYPE_XALPHA,\r
94     /*  C  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER | SVN_CTYPE_XALPHA,\r
95     /*  D  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER | SVN_CTYPE_XALPHA,\r
96     /*  E  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER | SVN_CTYPE_XALPHA,\r
97     /*  F  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER | SVN_CTYPE_XALPHA,\r
98     /*  G  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
99     /*  H  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
100     /*  I  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
101     /*  J  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
102     /*  K  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
103     /*  L  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
104     /*  M  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
105     /*  N  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
106     /*  O  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
107     /*  P  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
108     /*  Q  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
109     /*  R  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
110     /*  S  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
111     /*  T  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
112     /*  U  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
113     /*  V  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
114     /*  W  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
115     /*  X  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
116     /*  Y  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
117     /*  Z  */ SVN_CTYPE_ASCII | SVN_CTYPE_UPPER,\r
118     /*  [  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
119     /*  \  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
120     /*  ]  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
121     /*  ^  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
122     /*  _  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
123     /*  `  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
124     /*  a  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER | SVN_CTYPE_XALPHA,\r
125     /*  b  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER | SVN_CTYPE_XALPHA,\r
126     /*  c  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER | SVN_CTYPE_XALPHA,\r
127     /*  d  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER | SVN_CTYPE_XALPHA,\r
128     /*  e  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER | SVN_CTYPE_XALPHA,\r
129     /*  f  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER | SVN_CTYPE_XALPHA,\r
130     /*  g  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
131     /*  h  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
132     /*  i  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
133     /*  j  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
134     /*  k  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
135     /*  l  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
136     /*  m  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
137     /*  n  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
138     /*  o  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
139     /*  p  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
140     /*  q  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
141     /*  r  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
142     /*  s  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
143     /*  t  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
144     /*  u  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
145     /*  v  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
146     /*  w  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
147     /*  x  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
148     /*  y  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
149     /*  z  */ SVN_CTYPE_ASCII | SVN_CTYPE_LOWER,\r
150     /*  {  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
151     /*  |  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
152     /*  }  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
153     /*  ~  */ SVN_CTYPE_ASCII | SVN_CTYPE_PUNCT,\r
154     /* del */ SVN_CTYPE_ASCII | SVN_CTYPE_CNTRL,\r
155     /* x80 */ SVN_CTYPE_UTF8CONT,\r
156     /* x81 */ SVN_CTYPE_UTF8CONT,\r
157     /* x82 */ SVN_CTYPE_UTF8CONT,\r
158     /* x83 */ SVN_CTYPE_UTF8CONT,\r
159     /* x84 */ SVN_CTYPE_UTF8CONT,\r
160     /* x85 */ SVN_CTYPE_UTF8CONT,\r
161     /* x86 */ SVN_CTYPE_UTF8CONT,\r
162     /* x87 */ SVN_CTYPE_UTF8CONT,\r
163     /* x88 */ SVN_CTYPE_UTF8CONT,\r
164     /* x89 */ SVN_CTYPE_UTF8CONT,\r
165     /* x8a */ SVN_CTYPE_UTF8CONT,\r
166     /* x8b */ SVN_CTYPE_UTF8CONT,\r
167     /* x8c */ SVN_CTYPE_UTF8CONT,\r
168     /* x8d */ SVN_CTYPE_UTF8CONT,\r
169     /* x8e */ SVN_CTYPE_UTF8CONT,\r
170     /* x8f */ SVN_CTYPE_UTF8CONT,\r
171     /* x90 */ SVN_CTYPE_UTF8CONT,\r
172     /* x91 */ SVN_CTYPE_UTF8CONT,\r
173     /* x92 */ SVN_CTYPE_UTF8CONT,\r
174     /* x93 */ SVN_CTYPE_UTF8CONT,\r
175     /* x94 */ SVN_CTYPE_UTF8CONT,\r
176     /* x95 */ SVN_CTYPE_UTF8CONT,\r
177     /* x96 */ SVN_CTYPE_UTF8CONT,\r
178     /* x97 */ SVN_CTYPE_UTF8CONT,\r
179     /* x98 */ SVN_CTYPE_UTF8CONT,\r
180     /* x99 */ SVN_CTYPE_UTF8CONT,\r
181     /* x9a */ SVN_CTYPE_UTF8CONT,\r
182     /* x9b */ SVN_CTYPE_UTF8CONT,\r
183     /* x9c */ SVN_CTYPE_UTF8CONT,\r
184     /* x9d */ SVN_CTYPE_UTF8CONT,\r
185     /* x9e */ SVN_CTYPE_UTF8CONT,\r
186     /* x9f */ SVN_CTYPE_UTF8CONT,\r
187     /* xa0 */ SVN_CTYPE_UTF8CONT,\r
188     /* xa1 */ SVN_CTYPE_UTF8CONT,\r
189     /* xa2 */ SVN_CTYPE_UTF8CONT,\r
190     /* xa3 */ SVN_CTYPE_UTF8CONT,\r
191     /* xa4 */ SVN_CTYPE_UTF8CONT,\r
192     /* xa5 */ SVN_CTYPE_UTF8CONT,\r
193     /* xa6 */ SVN_CTYPE_UTF8CONT,\r
194     /* xa7 */ SVN_CTYPE_UTF8CONT,\r
195     /* xa8 */ SVN_CTYPE_UTF8CONT,\r
196     /* xa9 */ SVN_CTYPE_UTF8CONT,\r
197     /* xaa */ SVN_CTYPE_UTF8CONT,\r
198     /* xab */ SVN_CTYPE_UTF8CONT,\r
199     /* xac */ SVN_CTYPE_UTF8CONT,\r
200     /* xad */ SVN_CTYPE_UTF8CONT,\r
201     /* xae */ SVN_CTYPE_UTF8CONT,\r
202     /* xaf */ SVN_CTYPE_UTF8CONT,\r
203     /* xb0 */ SVN_CTYPE_UTF8CONT,\r
204     /* xb1 */ SVN_CTYPE_UTF8CONT,\r
205     /* xb2 */ SVN_CTYPE_UTF8CONT,\r
206     /* xb3 */ SVN_CTYPE_UTF8CONT,\r
207     /* xb4 */ SVN_CTYPE_UTF8CONT,\r
208     /* xb5 */ SVN_CTYPE_UTF8CONT,\r
209     /* xb6 */ SVN_CTYPE_UTF8CONT,\r
210     /* xb7 */ SVN_CTYPE_UTF8CONT,\r
211     /* xb8 */ SVN_CTYPE_UTF8CONT,\r
212     /* xb9 */ SVN_CTYPE_UTF8CONT,\r
213     /* xba */ SVN_CTYPE_UTF8CONT,\r
214     /* xbb */ SVN_CTYPE_UTF8CONT,\r
215     /* xbc */ SVN_CTYPE_UTF8CONT,\r
216     /* xbd */ SVN_CTYPE_UTF8CONT,\r
217     /* xbe */ SVN_CTYPE_UTF8CONT,\r
218     /* xbf */ SVN_CTYPE_UTF8CONT,\r
219     /* xc0 */ 0,\r
220     /* xc1 */ SVN_CTYPE_UTF8LEAD,\r
221     /* xc2 */ SVN_CTYPE_UTF8LEAD,\r
222     /* xc3 */ SVN_CTYPE_UTF8LEAD,\r
223     /* xc4 */ SVN_CTYPE_UTF8LEAD,\r
224     /* xc5 */ SVN_CTYPE_UTF8LEAD,\r
225     /* xc6 */ SVN_CTYPE_UTF8LEAD,\r
226     /* xc7 */ SVN_CTYPE_UTF8LEAD,\r
227     /* xc8 */ SVN_CTYPE_UTF8LEAD,\r
228     /* xc9 */ SVN_CTYPE_UTF8LEAD,\r
229     /* xca */ SVN_CTYPE_UTF8LEAD,\r
230     /* xcb */ SVN_CTYPE_UTF8LEAD,\r
231     /* xcc */ SVN_CTYPE_UTF8LEAD,\r
232     /* xcd */ SVN_CTYPE_UTF8LEAD,\r
233     /* xce */ SVN_CTYPE_UTF8LEAD,\r
234     /* xcf */ SVN_CTYPE_UTF8LEAD,\r
235     /* xd0 */ SVN_CTYPE_UTF8LEAD,\r
236     /* xd1 */ SVN_CTYPE_UTF8LEAD,\r
237     /* xd2 */ SVN_CTYPE_UTF8LEAD,\r
238     /* xd3 */ SVN_CTYPE_UTF8LEAD,\r
239     /* xd4 */ SVN_CTYPE_UTF8LEAD,\r
240     /* xd5 */ SVN_CTYPE_UTF8LEAD,\r
241     /* xd6 */ SVN_CTYPE_UTF8LEAD,\r
242     /* xd7 */ SVN_CTYPE_UTF8LEAD,\r
243     /* xd8 */ SVN_CTYPE_UTF8LEAD,\r
244     /* xd9 */ SVN_CTYPE_UTF8LEAD,\r
245     /* xda */ SVN_CTYPE_UTF8LEAD,\r
246     /* xdb */ SVN_CTYPE_UTF8LEAD,\r
247     /* xdc */ SVN_CTYPE_UTF8LEAD,\r
248     /* xdd */ SVN_CTYPE_UTF8LEAD,\r
249     /* xde */ SVN_CTYPE_UTF8LEAD,\r
250     /* xdf */ SVN_CTYPE_UTF8LEAD,\r
251     /* xe0 */ 0,\r
252     /* xe1 */ SVN_CTYPE_UTF8LEAD,\r
253     /* xe2 */ SVN_CTYPE_UTF8LEAD,\r
254     /* xe3 */ SVN_CTYPE_UTF8LEAD,\r
255     /* xe4 */ SVN_CTYPE_UTF8LEAD,\r
256     /* xe5 */ SVN_CTYPE_UTF8LEAD,\r
257     /* xe6 */ SVN_CTYPE_UTF8LEAD,\r
258     /* xe7 */ SVN_CTYPE_UTF8LEAD,\r
259     /* xe8 */ SVN_CTYPE_UTF8LEAD,\r
260     /* xe9 */ SVN_CTYPE_UTF8LEAD,\r
261     /* xea */ SVN_CTYPE_UTF8LEAD,\r
262     /* xeb */ SVN_CTYPE_UTF8LEAD,\r
263     /* xec */ SVN_CTYPE_UTF8LEAD,\r
264     /* xed */ SVN_CTYPE_UTF8LEAD,\r
265     /* xee */ SVN_CTYPE_UTF8LEAD,\r
266     /* xef */ SVN_CTYPE_UTF8LEAD,\r
267     /* xf0 */ 0,\r
268     /* xf1 */ SVN_CTYPE_UTF8LEAD,\r
269     /* xf2 */ SVN_CTYPE_UTF8LEAD,\r
270     /* xf3 */ SVN_CTYPE_UTF8LEAD,\r
271     /* xf4 */ SVN_CTYPE_UTF8LEAD,\r
272     /* xf5 */ SVN_CTYPE_UTF8LEAD,\r
273     /* xf6 */ SVN_CTYPE_UTF8LEAD,\r
274     /* xf7 */ SVN_CTYPE_UTF8LEAD,\r
275     /* xf8 */ 0,\r
276     /* xf9 */ SVN_CTYPE_UTF8LEAD,\r
277     /* xfa */ SVN_CTYPE_UTF8LEAD,\r
278     /* xfb */ SVN_CTYPE_UTF8LEAD,\r
279     /* xfc */ 0,\r
280     /* xfd */ SVN_CTYPE_UTF8LEAD,\r
281     /* xfe */ 0,\r
282     /* xff */ 0\r
283   };\r
284 \r
285 const apr_uint32_t *const svn_ctype_table = svn_ctype_table_internal;\r
286 \r
287 static const unsigned char casefold_table[256] =\r
288   {\r
289     /* Identity, except {97:122} => {65:90} */\r
290       0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15,\r
291      16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,\r
292      32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,\r
293      48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,\r
294      64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,\r
295      80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,\r
296      96, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,\r
297      80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,123,124,125,126,127,\r
298     128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,\r
299     144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,\r
300     160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,\r
301     176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,\r
302     192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,\r
303     208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,\r
304     224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,\r
305     240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255\r
306   };\r
307 \r
308 int\r
309 svn_ctype_casecmp(int a, int b)\r
310 {\r
311   const int A = casefold_table[(unsigned char)a];\r
312   const int B = casefold_table[(unsigned char)b];\r
313   return A - B;\r
314 }\r