File: collation.hh

package info (click to toggle)
xtide 2.6.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,996 kB
  • ctags: 2,617
  • sloc: cpp: 26,266; ansic: 8,105; makefile: 152; yacc: 113; sh: 54; lex: 54
file content (310 lines) | stat: -rw-r--r-- 4,303 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
// Case-insensitive collation for ISO 8859-1.
// DWF 1999-10-27

// This collation follows the partial ordering formed by Unicode Level
// 1 weights for alphabetic characters, except for the ligature 
// which should be replaced by ss.  All non-alphabetic characters
// retain their ASCII ordering.

// Reference:
//   http://www.unicode.org/unicode/reports/tr10/basekeys.txt

// For  you have to look in the "compound keys" file under
// LATIN SMALL LETTER SHARP S:
//   http://www.unicode.org/unicode/reports/tr10/compkeys.txt

// The actual values assigned are not from Unicode but are a relic from
// the previous version of this collation.

// Equivalence classes:
// 256  Aa
// 263  
// 264  Bb
// 265  Cc
// 266  
// 267  Dd
// 268  
// 269  Ee
// 274  Ff
// 275  Gg
// 276  Hh
// 277  Ii
// 282  Jj
// 283  Kk
// 284  Ll
// 285  Mm
// 286  Nn
// 288  Oo
// 294  
// 295  Pp
// 296  Qq
// 297  Rr
// 298  Ss
// 299  
// 300  Tt
// 302  Uu
// 307  Vv
// 308  Ww
// 309  Xx
// 310  Yy
// 313  Zz
// 315  

int collation[256] = {
    0,  //
    1,  //
    2,  //
    3,  //
    4,  //
    5,  //
    6,  //
    7,  //
    8,  //
    9,  //
   10,  //
   11,  //
   12,  //
   13,  //
   14,  //
   15,  //
   16,  //
   17,  //
   18,  //
   19,  //
   20,  //
   21,  //
   22,  //
   23,  //
   24,  //
   25,  //
   26,  //
   27,  //
   28,  //
   29,  //
   30,  //
   31,  //
   32,  //
   33,  // !
   34,  // "
   35,  // #
   36,  // $
   37,  // %
   38,  // &
   39,  // '
   40,  // (
   41,  // )
   42,  // *
   43,  // +
   44,  // ,
   45,  // -
   46,  // .
   47,  // /
   48,  // 0
   49,  // 1
   50,  // 2
   51,  // 3
   52,  // 4
   53,  // 5
   54,  // 6
   55,  // 7
   56,  // 8
   57,  // 9
   58,  // :
   59,  // ;
   60,  // <
   61,  // =
   62,  // >
   63,  // ?
   64,  // @
  256,  // A
  264,  // B
  265,  // C
  267,  // D
  269,  // E
  274,  // F
  275,  // G
  276,  // H
  277,  // I
  282,  // J
  283,  // K
  284,  // L
  285,  // M
  286,  // N
  288,  // O
  295,  // P
  296,  // Q
  297,  // R
  298,  // S
  300,  // T
  302,  // U
  307,  // V
  308,  // W
  309,  // X
  310,  // Y
  313,  // Z
   91,  // [
   92,  // backslash
   93,  // ]
   94,  // ^
   95,  // _
   96,  // `
  256,  // a
  264,  // b
  265,  // c
  267,  // d
  269,  // e
  274,  // f
  275,  // g
  276,  // h
  277,  // i
  282,  // j
  283,  // k
  284,  // l
  285,  // m
  286,  // n
  288,  // o
  295,  // p
  296,  // q
  297,  // r
  298,  // s
  300,  // t
  302,  // u
  307,  // v
  308,  // w
  309,  // x
  310,  // y
  313,  // z
  123,  // {
  124,  // |
  125,  // }
  126,  // ~
  127,  //
  128,  //
  129,  //
  130,  //
  131,  //
  132,  //
  133,  //
  134,  //
  135,  //
  136,  //
  137,  //
  138,  //
  139,  //
  140,  //
  141,  //
  142,  //
  143,  //
  144,  //
  145,  //
  146,  //
  147,  //
  148,  //
  149,  //
  150,  //
  151,  //
  152,  //
  153,  //
  154,  //
  155,  //
  156,  //
  157,  //
  158,  //
  159,  //
  160,  //
  161,  // 
  162,  // 
  163,  // 
  164,  // 
  165,  // 
  166,  // 
  167,  // 
  168,  // 
  169,  // 
  170,  // 
  171,  // 
  172,  // 
  173,  // 
  174,  // 
  175,  // 
  176,  // 
  177,  // 
  178,  // 
  179,  // 
  180,  // 
  181,  // 
  182,  // 
  183,  // 
  184,  // 
  185,  // 
  186,  // 
  187,  // 
  188,  // 
  189,  // 
  190,  // 
  191,  // 
  256,  // 
  256,  // 
  256,  // 
  256,  // 
  256,  // 
  256,  // 
  263,  // 
  266,  // 
  269,  // 
  269,  // 
  269,  // 
  269,  // 
  277,  // 
  277,  // 
  277,  // 
  277,  // 
  268,  // 
  286,  // 
  288,  // 
  288,  // 
  288,  // 
  288,  // 
  288,  // 
  215,  // 
  294,  // 
  302,  // 
  302,  // 
  302,  // 
  302,  // 
  310,  // 
  315,  // 
  299,  // 
  256,  // 
  256,  // 
  256,  // 
  256,  // 
  256,  // 
  256,  // 
  263,  // 
  266,  // 
  269,  // 
  269,  // 
  269,  // 
  269,  // 
  277,  // 
  277,  // 
  277,  // 
  277,  // 
  268,  // 
  286,  // 
  288,  // 
  288,  // 
  288,  // 
  288,  // 
  288,  // 
  247,  // 
  294,  // 
  302,  // 
  302,  // 
  302,  // 
  302,  // 
  310,  // 
  315,  // 
  310   // 
};