forgot one entry
[mcs.git] / class / I18N / Rare / CP875.cs
blobf51770580602aaf095bde323d65e7bb203cd1c3a
1 /*
2 * CP875.cs - IBM EBCDIC (Greek) code page.
4 * Copyright (c) 2002 Southern Storm Software, Pty Ltd
6 * Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22 * OTHER DEALINGS IN THE SOFTWARE.
25 // Generated from "ibm-875.ucm".
27 namespace I18N.Rare
30 using System;
31 using System.Text;
32 using I18N.Common;
34 [Serializable]
35 public class CP875 : ByteEncoding
37 public CP875()
38 : base(875, ToChars, "IBM EBCDIC (Greek)",
39 "ibm875", "ibm875", "ibm875",
40 false, false, false, false, 1253)
43 private static readonly char[] ToChars = {
44 '\u0000', '\u0001', '\u0002', '\u0003', '\u009C', '\u0009',
45 '\u0086', '\u007F', '\u0097', '\u008D', '\u008E', '\u000B',
46 '\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
47 '\u0012', '\u0013', '\u009D', '\u0085', '\u0008', '\u0087',
48 '\u0018', '\u0019', '\u0092', '\u008F', '\u001C', '\u001D',
49 '\u001E', '\u001F', '\u0080', '\u0081', '\u0082', '\u0083',
50 '\u0084', '\u000A', '\u0017', '\u001B', '\u0088', '\u0089',
51 '\u008A', '\u008B', '\u008C', '\u0005', '\u0006', '\u0007',
52 '\u0090', '\u0091', '\u0016', '\u0093', '\u0094', '\u0095',
53 '\u0096', '\u0004', '\u0098', '\u0099', '\u009A', '\u009B',
54 '\u0014', '\u0015', '\u009E', '\u001A', '\u0020', '\u0391',
55 '\u0392', '\u0393', '\u0394', '\u0395', '\u0396', '\u0397',
56 '\u0398', '\u0399', '\u005B', '\u002E', '\u003C', '\u0028',
57 '\u002B', '\u0021', '\u0026', '\u039A', '\u039B', '\u039C',
58 '\u039D', '\u039E', '\u039F', '\u03A0', '\u03A1', '\u03A3',
59 '\u005D', '\u0024', '\u002A', '\u0029', '\u003B', '\u005E',
60 '\u002D', '\u002F', '\u03A4', '\u03A5', '\u03A6', '\u03A7',
61 '\u03A8', '\u03A9', '\u03AA', '\u03AB', '\u007C', '\u002C',
62 '\u0025', '\u005F', '\u003E', '\u003F', '\u00A8', '\u0386',
63 '\u0388', '\u0389', '\u00A0', '\u038A', '\u038C', '\u038E',
64 '\u038F', '\u0060', '\u003A', '\u0023', '\u0040', '\u0027',
65 '\u003D', '\u0022', '\u0385', '\u0061', '\u0062', '\u0063',
66 '\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
67 '\u03B1', '\u03B2', '\u03B3', '\u03B4', '\u03B5', '\u03B6',
68 '\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
69 '\u006F', '\u0070', '\u0071', '\u0072', '\u03B7', '\u03B8',
70 '\u03B9', '\u03BA', '\u03BB', '\u03BC', '\u00B4', '\u007E',
71 '\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
72 '\u0079', '\u007A', '\u03BD', '\u03BE', '\u03BF', '\u03C0',
73 '\u03C1', '\u03C3', '\u00A3', '\u03AC', '\u03AD', '\u03AE',
74 '\u03CA', '\u03AF', '\u03CC', '\u03CD', '\u03CB', '\u03CE',
75 '\u03C2', '\u03C4', '\u03C5', '\u03C6', '\u03C7', '\u03C8',
76 '\u007B', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
77 '\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u03C9',
78 '\u0390', '\u03B0', '\u2018', '\u2015', '\u007D', '\u004A',
79 '\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
80 '\u0051', '\u0052', '\u00B1', '\u00BD', '\u003F', '\u0387',
81 '\u2019', '\u00A6', '\u005C', '\u003F', '\u0053', '\u0054',
82 '\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
83 '\u00B2', '\u00A7', '\u003F', '\u003F', '\u00AB', '\u00AC',
84 '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
85 '\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00A9',
86 '\u003F', '\u003F', '\u00BB', '\u009F',
89 protected unsafe override void ToBytes(char* chars, int charCount,
90 byte* bytes, int byteCount)
92 int ch;
93 int charIndex = 0;
94 int byteIndex = 0;
95 #if NET_2_0
96 EncoderFallbackBuffer buffer = null;
97 #endif
98 while(charCount > 0)
100 ch = (int)(chars[charIndex++]);
101 if(ch >= 4) switch(ch)
103 case 0x000B:
104 case 0x000C:
105 case 0x000D:
106 case 0x000E:
107 case 0x000F:
108 case 0x0010:
109 case 0x0011:
110 case 0x0012:
111 case 0x0013:
112 case 0x0018:
113 case 0x0019:
114 case 0x001C:
115 case 0x001D:
116 case 0x001E:
117 case 0x001F:
118 break;
119 case 0x0004: ch = 0x37; break;
120 case 0x0005: ch = 0x2D; break;
121 case 0x0006: ch = 0x2E; break;
122 case 0x0007: ch = 0x2F; break;
123 case 0x0008: ch = 0x16; break;
124 case 0x0009: ch = 0x05; break;
125 case 0x000A: ch = 0x25; break;
126 case 0x0014: ch = 0x3C; break;
127 case 0x0015: ch = 0x3D; break;
128 case 0x0016: ch = 0x32; break;
129 case 0x0017: ch = 0x26; break;
130 case 0x001A: ch = 0x3F; break;
131 case 0x001B: ch = 0x27; break;
132 case 0x0020: ch = 0x40; break;
133 case 0x0021: ch = 0x4F; break;
134 case 0x0022: ch = 0x7F; break;
135 case 0x0023: ch = 0x7B; break;
136 case 0x0024: ch = 0x5B; break;
137 case 0x0025: ch = 0x6C; break;
138 case 0x0026: ch = 0x50; break;
139 case 0x0027: ch = 0x7D; break;
140 case 0x0028: ch = 0x4D; break;
141 case 0x0029: ch = 0x5D; break;
142 case 0x002A: ch = 0x5C; break;
143 case 0x002B: ch = 0x4E; break;
144 case 0x002C: ch = 0x6B; break;
145 case 0x002D: ch = 0x60; break;
146 case 0x002E: ch = 0x4B; break;
147 case 0x002F: ch = 0x61; break;
148 case 0x0030:
149 case 0x0031:
150 case 0x0032:
151 case 0x0033:
152 case 0x0034:
153 case 0x0035:
154 case 0x0036:
155 case 0x0037:
156 case 0x0038:
157 case 0x0039:
158 ch += 0x00C0;
159 break;
160 case 0x003A: ch = 0x7A; break;
161 case 0x003B: ch = 0x5E; break;
162 case 0x003C: ch = 0x4C; break;
163 case 0x003D: ch = 0x7E; break;
164 case 0x003E: ch = 0x6E; break;
165 case 0x003F: ch = 0x6F; break;
166 case 0x0040: ch = 0x7C; break;
167 case 0x0041:
168 case 0x0042:
169 case 0x0043:
170 case 0x0044:
171 case 0x0045:
172 case 0x0046:
173 case 0x0047:
174 case 0x0048:
175 case 0x0049:
176 ch += 0x0080;
177 break;
178 case 0x004A:
179 case 0x004B:
180 case 0x004C:
181 case 0x004D:
182 case 0x004E:
183 case 0x004F:
184 case 0x0050:
185 case 0x0051:
186 case 0x0052:
187 ch += 0x0087;
188 break;
189 case 0x0053:
190 case 0x0054:
191 case 0x0055:
192 case 0x0056:
193 case 0x0057:
194 case 0x0058:
195 case 0x0059:
196 case 0x005A:
197 ch += 0x008F;
198 break;
199 case 0x005B: ch = 0x4A; break;
200 case 0x005C: ch = 0xE0; break;
201 case 0x005D: ch = 0x5A; break;
202 case 0x005E: ch = 0x5F; break;
203 case 0x005F: ch = 0x6D; break;
204 case 0x0060: ch = 0x79; break;
205 case 0x0061:
206 case 0x0062:
207 case 0x0063:
208 case 0x0064:
209 case 0x0065:
210 case 0x0066:
211 case 0x0067:
212 case 0x0068:
213 case 0x0069:
214 ch += 0x0020;
215 break;
216 case 0x006A:
217 case 0x006B:
218 case 0x006C:
219 case 0x006D:
220 case 0x006E:
221 case 0x006F:
222 case 0x0070:
223 case 0x0071:
224 case 0x0072:
225 ch += 0x0027;
226 break;
227 case 0x0073:
228 case 0x0074:
229 case 0x0075:
230 case 0x0076:
231 case 0x0077:
232 case 0x0078:
233 case 0x0079:
234 case 0x007A:
235 ch += 0x002F;
236 break;
237 case 0x007B: ch = 0xC0; break;
238 case 0x007C: ch = 0x6A; break;
239 case 0x007D: ch = 0xD0; break;
240 case 0x007E: ch = 0xA1; break;
241 case 0x007F: ch = 0x07; break;
242 case 0x0080:
243 case 0x0081:
244 case 0x0082:
245 case 0x0083:
246 case 0x0084:
247 ch -= 0x0060;
248 break;
249 case 0x0085: ch = 0x15; break;
250 case 0x0086: ch = 0x06; break;
251 case 0x0087: ch = 0x17; break;
252 case 0x0088:
253 case 0x0089:
254 case 0x008A:
255 case 0x008B:
256 case 0x008C:
257 ch -= 0x0060;
258 break;
259 case 0x008D: ch = 0x09; break;
260 case 0x008E: ch = 0x0A; break;
261 case 0x008F: ch = 0x1B; break;
262 case 0x0090: ch = 0x30; break;
263 case 0x0091: ch = 0x31; break;
264 case 0x0092: ch = 0x1A; break;
265 case 0x0093:
266 case 0x0094:
267 case 0x0095:
268 case 0x0096:
269 ch -= 0x0060;
270 break;
271 case 0x0097: ch = 0x08; break;
272 case 0x0098:
273 case 0x0099:
274 case 0x009A:
275 case 0x009B:
276 ch -= 0x0060;
277 break;
278 case 0x009C: ch = 0x04; break;
279 case 0x009D: ch = 0x14; break;
280 case 0x009E: ch = 0x3E; break;
281 case 0x009F: ch = 0xFF; break;
282 case 0x00A0: ch = 0x74; break;
283 case 0x00A3: ch = 0xB0; break;
284 case 0x00A6: ch = 0xDF; break;
285 case 0x00A7: ch = 0xEB; break;
286 case 0x00A8: ch = 0x70; break;
287 case 0x00A9: ch = 0xFB; break;
288 case 0x00AB: ch = 0xEE; break;
289 case 0x00AC: ch = 0xEF; break;
290 case 0x00AD: ch = 0xCA; break;
291 case 0x00B0: ch = 0x90; break;
292 case 0x00B1: ch = 0xDA; break;
293 case 0x00B2: ch = 0xEA; break;
294 case 0x00B3: ch = 0xFA; break;
295 case 0x00B4: ch = 0xA0; break;
296 case 0x00B7: ch = 0xDD; break;
297 case 0x00BB: ch = 0xFE; break;
298 case 0x00BD: ch = 0xDB; break;
299 case 0x0385: ch = 0x80; break;
300 case 0x0386: ch = 0x71; break;
301 case 0x0387: ch = 0xDD; break;
302 case 0x0388: ch = 0x72; break;
303 case 0x0389: ch = 0x73; break;
304 case 0x038A: ch = 0x75; break;
305 case 0x038C: ch = 0x76; break;
306 case 0x038E: ch = 0x77; break;
307 case 0x038F: ch = 0x78; break;
308 case 0x0390: ch = 0xCC; break;
309 case 0x0391:
310 case 0x0392:
311 case 0x0393:
312 case 0x0394:
313 case 0x0395:
314 case 0x0396:
315 case 0x0397:
316 case 0x0398:
317 case 0x0399:
318 ch -= 0x0350;
319 break;
320 case 0x039A:
321 case 0x039B:
322 case 0x039C:
323 case 0x039D:
324 case 0x039E:
325 case 0x039F:
326 case 0x03A0:
327 case 0x03A1:
328 ch -= 0x0349;
329 break;
330 case 0x03A3: ch = 0x59; break;
331 case 0x03A4:
332 case 0x03A5:
333 case 0x03A6:
334 case 0x03A7:
335 case 0x03A8:
336 case 0x03A9:
337 case 0x03AA:
338 case 0x03AB:
339 ch -= 0x0342;
340 break;
341 case 0x03AC: ch = 0xB1; break;
342 case 0x03AD: ch = 0xB2; break;
343 case 0x03AE: ch = 0xB3; break;
344 case 0x03AF: ch = 0xB5; break;
345 case 0x03B0: ch = 0xCD; break;
346 case 0x03B1:
347 case 0x03B2:
348 case 0x03B3:
349 case 0x03B4:
350 case 0x03B5:
351 case 0x03B6:
352 ch -= 0x0327;
353 break;
354 case 0x03B7:
355 case 0x03B8:
356 case 0x03B9:
357 case 0x03BA:
358 case 0x03BB:
359 case 0x03BC:
360 ch -= 0x031D;
361 break;
362 case 0x03BD:
363 case 0x03BE:
364 case 0x03BF:
365 case 0x03C0:
366 case 0x03C1:
367 ch -= 0x0313;
368 break;
369 case 0x03C2: ch = 0xBA; break;
370 case 0x03C3: ch = 0xAF; break;
371 case 0x03C4:
372 case 0x03C5:
373 case 0x03C6:
374 case 0x03C7:
375 case 0x03C8:
376 ch -= 0x0309;
377 break;
378 case 0x03C9: ch = 0xCB; break;
379 case 0x03CA: ch = 0xB4; break;
380 case 0x03CB: ch = 0xB8; break;
381 case 0x03CC: ch = 0xB6; break;
382 case 0x03CD: ch = 0xB7; break;
383 case 0x03CE: ch = 0xB9; break;
384 case 0x03D5: ch = 0xBD; break;
385 case 0x2015: ch = 0xCF; break;
386 case 0x2018: ch = 0xCE; break;
387 case 0x2019: ch = 0xDE; break;
388 case 0xFF01: ch = 0x4F; break;
389 case 0xFF02: ch = 0x7F; break;
390 case 0xFF03: ch = 0x7B; break;
391 case 0xFF04: ch = 0x5B; break;
392 case 0xFF05: ch = 0x6C; break;
393 case 0xFF06: ch = 0x50; break;
394 case 0xFF07: ch = 0x7D; break;
395 case 0xFF08: ch = 0x4D; break;
396 case 0xFF09: ch = 0x5D; break;
397 case 0xFF0A: ch = 0x5C; break;
398 case 0xFF0B: ch = 0x4E; break;
399 case 0xFF0C: ch = 0x6B; break;
400 case 0xFF0D: ch = 0x60; break;
401 case 0xFF0E: ch = 0x4B; break;
402 case 0xFF0F: ch = 0x61; break;
403 case 0xFF10:
404 case 0xFF11:
405 case 0xFF12:
406 case 0xFF13:
407 case 0xFF14:
408 case 0xFF15:
409 case 0xFF16:
410 case 0xFF17:
411 case 0xFF18:
412 case 0xFF19:
413 ch -= 0xFE20;
414 break;
415 case 0xFF1A: ch = 0x7A; break;
416 case 0xFF1B: ch = 0x5E; break;
417 case 0xFF1C: ch = 0x4C; break;
418 case 0xFF1D: ch = 0x7E; break;
419 case 0xFF1E: ch = 0x6E; break;
420 case 0xFF1F: ch = 0x6F; break;
421 case 0xFF20: ch = 0x7C; break;
422 case 0xFF21:
423 case 0xFF22:
424 case 0xFF23:
425 case 0xFF24:
426 case 0xFF25:
427 case 0xFF26:
428 case 0xFF27:
429 case 0xFF28:
430 case 0xFF29:
431 ch -= 0xFE60;
432 break;
433 case 0xFF2A:
434 case 0xFF2B:
435 case 0xFF2C:
436 case 0xFF2D:
437 case 0xFF2E:
438 case 0xFF2F:
439 case 0xFF30:
440 case 0xFF31:
441 case 0xFF32:
442 ch -= 0xFE59;
443 break;
444 case 0xFF33:
445 case 0xFF34:
446 case 0xFF35:
447 case 0xFF36:
448 case 0xFF37:
449 case 0xFF38:
450 case 0xFF39:
451 case 0xFF3A:
452 ch -= 0xFE51;
453 break;
454 case 0xFF3B: ch = 0x4A; break;
455 case 0xFF3C: ch = 0xE0; break;
456 case 0xFF3D: ch = 0x5A; break;
457 case 0xFF3E: ch = 0x5F; break;
458 case 0xFF3F: ch = 0x6D; break;
459 case 0xFF40: ch = 0x79; break;
460 case 0xFF41:
461 case 0xFF42:
462 case 0xFF43:
463 case 0xFF44:
464 case 0xFF45:
465 case 0xFF46:
466 case 0xFF47:
467 case 0xFF48:
468 case 0xFF49:
469 ch -= 0xFEC0;
470 break;
471 case 0xFF4A:
472 case 0xFF4B:
473 case 0xFF4C:
474 case 0xFF4D:
475 case 0xFF4E:
476 case 0xFF4F:
477 case 0xFF50:
478 case 0xFF51:
479 case 0xFF52:
480 ch -= 0xFEB9;
481 break;
482 case 0xFF53:
483 case 0xFF54:
484 case 0xFF55:
485 case 0xFF56:
486 case 0xFF57:
487 case 0xFF58:
488 case 0xFF59:
489 case 0xFF5A:
490 ch -= 0xFEB1;
491 break;
492 case 0xFF5B: ch = 0xC0; break;
493 case 0xFF5C: ch = 0x6A; break;
494 case 0xFF5D: ch = 0xD0; break;
495 case 0xFF5E: ch = 0xA1; break;
496 default:
497 #if NET_2_0
498 HandleFallback (ref buffer, chars, ref charIndex, ref charCount, bytes, ref byteIndex, ref byteCount);
499 #else
500 ch = 0x3F;
501 #endif
502 break;
504 bytes[byteIndex++] = (byte)ch;
505 --charCount;
506 --byteCount;
511 protected override void ToBytes(String s, int charIndex, int charCount,
512 byte[] bytes, int byteIndex)
514 int ch;
515 while(charCount > 0)
517 ch = (int)(s[charIndex++]);
518 if(ch >= 4) switch(ch)
520 case 0x000B:
521 case 0x000C:
522 case 0x000D:
523 case 0x000E:
524 case 0x000F:
525 case 0x0010:
526 case 0x0011:
527 case 0x0012:
528 case 0x0013:
529 case 0x0018:
530 case 0x0019:
531 case 0x001C:
532 case 0x001D:
533 case 0x001E:
534 case 0x001F:
535 break;
536 case 0x0004: ch = 0x37; break;
537 case 0x0005: ch = 0x2D; break;
538 case 0x0006: ch = 0x2E; break;
539 case 0x0007: ch = 0x2F; break;
540 case 0x0008: ch = 0x16; break;
541 case 0x0009: ch = 0x05; break;
542 case 0x000A: ch = 0x25; break;
543 case 0x0014: ch = 0x3C; break;
544 case 0x0015: ch = 0x3D; break;
545 case 0x0016: ch = 0x32; break;
546 case 0x0017: ch = 0x26; break;
547 case 0x001A: ch = 0x3F; break;
548 case 0x001B: ch = 0x27; break;
549 case 0x0020: ch = 0x40; break;
550 case 0x0021: ch = 0x4F; break;
551 case 0x0022: ch = 0x7F; break;
552 case 0x0023: ch = 0x7B; break;
553 case 0x0024: ch = 0x5B; break;
554 case 0x0025: ch = 0x6C; break;
555 case 0x0026: ch = 0x50; break;
556 case 0x0027: ch = 0x7D; break;
557 case 0x0028: ch = 0x4D; break;
558 case 0x0029: ch = 0x5D; break;
559 case 0x002A: ch = 0x5C; break;
560 case 0x002B: ch = 0x4E; break;
561 case 0x002C: ch = 0x6B; break;
562 case 0x002D: ch = 0x60; break;
563 case 0x002E: ch = 0x4B; break;
564 case 0x002F: ch = 0x61; break;
565 case 0x0030:
566 case 0x0031:
567 case 0x0032:
568 case 0x0033:
569 case 0x0034:
570 case 0x0035:
571 case 0x0036:
572 case 0x0037:
573 case 0x0038:
574 case 0x0039:
575 ch += 0x00C0;
576 break;
577 case 0x003A: ch = 0x7A; break;
578 case 0x003B: ch = 0x5E; break;
579 case 0x003C: ch = 0x4C; break;
580 case 0x003D: ch = 0x7E; break;
581 case 0x003E: ch = 0x6E; break;
582 case 0x003F: ch = 0x6F; break;
583 case 0x0040: ch = 0x7C; break;
584 case 0x0041:
585 case 0x0042:
586 case 0x0043:
587 case 0x0044:
588 case 0x0045:
589 case 0x0046:
590 case 0x0047:
591 case 0x0048:
592 case 0x0049:
593 ch += 0x0080;
594 break;
595 case 0x004A:
596 case 0x004B:
597 case 0x004C:
598 case 0x004D:
599 case 0x004E:
600 case 0x004F:
601 case 0x0050:
602 case 0x0051:
603 case 0x0052:
604 ch += 0x0087;
605 break;
606 case 0x0053:
607 case 0x0054:
608 case 0x0055:
609 case 0x0056:
610 case 0x0057:
611 case 0x0058:
612 case 0x0059:
613 case 0x005A:
614 ch += 0x008F;
615 break;
616 case 0x005B: ch = 0x4A; break;
617 case 0x005C: ch = 0xE0; break;
618 case 0x005D: ch = 0x5A; break;
619 case 0x005E: ch = 0x5F; break;
620 case 0x005F: ch = 0x6D; break;
621 case 0x0060: ch = 0x79; break;
622 case 0x0061:
623 case 0x0062:
624 case 0x0063:
625 case 0x0064:
626 case 0x0065:
627 case 0x0066:
628 case 0x0067:
629 case 0x0068:
630 case 0x0069:
631 ch += 0x0020;
632 break;
633 case 0x006A:
634 case 0x006B:
635 case 0x006C:
636 case 0x006D:
637 case 0x006E:
638 case 0x006F:
639 case 0x0070:
640 case 0x0071:
641 case 0x0072:
642 ch += 0x0027;
643 break;
644 case 0x0073:
645 case 0x0074:
646 case 0x0075:
647 case 0x0076:
648 case 0x0077:
649 case 0x0078:
650 case 0x0079:
651 case 0x007A:
652 ch += 0x002F;
653 break;
654 case 0x007B: ch = 0xC0; break;
655 case 0x007C: ch = 0x6A; break;
656 case 0x007D: ch = 0xD0; break;
657 case 0x007E: ch = 0xA1; break;
658 case 0x007F: ch = 0x07; break;
659 case 0x0080:
660 case 0x0081:
661 case 0x0082:
662 case 0x0083:
663 case 0x0084:
664 ch -= 0x0060;
665 break;
666 case 0x0085: ch = 0x15; break;
667 case 0x0086: ch = 0x06; break;
668 case 0x0087: ch = 0x17; break;
669 case 0x0088:
670 case 0x0089:
671 case 0x008A:
672 case 0x008B:
673 case 0x008C:
674 ch -= 0x0060;
675 break;
676 case 0x008D: ch = 0x09; break;
677 case 0x008E: ch = 0x0A; break;
678 case 0x008F: ch = 0x1B; break;
679 case 0x0090: ch = 0x30; break;
680 case 0x0091: ch = 0x31; break;
681 case 0x0092: ch = 0x1A; break;
682 case 0x0093:
683 case 0x0094:
684 case 0x0095:
685 case 0x0096:
686 ch -= 0x0060;
687 break;
688 case 0x0097: ch = 0x08; break;
689 case 0x0098:
690 case 0x0099:
691 case 0x009A:
692 case 0x009B:
693 ch -= 0x0060;
694 break;
695 case 0x009C: ch = 0x04; break;
696 case 0x009D: ch = 0x14; break;
697 case 0x009E: ch = 0x3E; break;
698 case 0x009F: ch = 0xFF; break;
699 case 0x00A0: ch = 0x74; break;
700 case 0x00A3: ch = 0xB0; break;
701 case 0x00A6: ch = 0xDF; break;
702 case 0x00A7: ch = 0xEB; break;
703 case 0x00A8: ch = 0x70; break;
704 case 0x00A9: ch = 0xFB; break;
705 case 0x00AB: ch = 0xEE; break;
706 case 0x00AC: ch = 0xEF; break;
707 case 0x00AD: ch = 0xCA; break;
708 case 0x00B0: ch = 0x90; break;
709 case 0x00B1: ch = 0xDA; break;
710 case 0x00B2: ch = 0xEA; break;
711 case 0x00B3: ch = 0xFA; break;
712 case 0x00B4: ch = 0xA0; break;
713 case 0x00B7: ch = 0xDD; break;
714 case 0x00BB: ch = 0xFE; break;
715 case 0x00BD: ch = 0xDB; break;
716 case 0x0385: ch = 0x80; break;
717 case 0x0386: ch = 0x71; break;
718 case 0x0387: ch = 0xDD; break;
719 case 0x0388: ch = 0x72; break;
720 case 0x0389: ch = 0x73; break;
721 case 0x038A: ch = 0x75; break;
722 case 0x038C: ch = 0x76; break;
723 case 0x038E: ch = 0x77; break;
724 case 0x038F: ch = 0x78; break;
725 case 0x0390: ch = 0xCC; break;
726 case 0x0391:
727 case 0x0392:
728 case 0x0393:
729 case 0x0394:
730 case 0x0395:
731 case 0x0396:
732 case 0x0397:
733 case 0x0398:
734 case 0x0399:
735 ch -= 0x0350;
736 break;
737 case 0x039A:
738 case 0x039B:
739 case 0x039C:
740 case 0x039D:
741 case 0x039E:
742 case 0x039F:
743 case 0x03A0:
744 case 0x03A1:
745 ch -= 0x0349;
746 break;
747 case 0x03A3: ch = 0x59; break;
748 case 0x03A4:
749 case 0x03A5:
750 case 0x03A6:
751 case 0x03A7:
752 case 0x03A8:
753 case 0x03A9:
754 case 0x03AA:
755 case 0x03AB:
756 ch -= 0x0342;
757 break;
758 case 0x03AC: ch = 0xB1; break;
759 case 0x03AD: ch = 0xB2; break;
760 case 0x03AE: ch = 0xB3; break;
761 case 0x03AF: ch = 0xB5; break;
762 case 0x03B0: ch = 0xCD; break;
763 case 0x03B1:
764 case 0x03B2:
765 case 0x03B3:
766 case 0x03B4:
767 case 0x03B5:
768 case 0x03B6:
769 ch -= 0x0327;
770 break;
771 case 0x03B7:
772 case 0x03B8:
773 case 0x03B9:
774 case 0x03BA:
775 case 0x03BB:
776 case 0x03BC:
777 ch -= 0x031D;
778 break;
779 case 0x03BD:
780 case 0x03BE:
781 case 0x03BF:
782 case 0x03C0:
783 case 0x03C1:
784 ch -= 0x0313;
785 break;
786 case 0x03C2: ch = 0xBA; break;
787 case 0x03C3: ch = 0xAF; break;
788 case 0x03C4:
789 case 0x03C5:
790 case 0x03C6:
791 case 0x03C7:
792 case 0x03C8:
793 ch -= 0x0309;
794 break;
795 case 0x03C9: ch = 0xCB; break;
796 case 0x03CA: ch = 0xB4; break;
797 case 0x03CB: ch = 0xB8; break;
798 case 0x03CC: ch = 0xB6; break;
799 case 0x03CD: ch = 0xB7; break;
800 case 0x03CE: ch = 0xB9; break;
801 case 0x03D5: ch = 0xBD; break;
802 case 0x2015: ch = 0xCF; break;
803 case 0x2018: ch = 0xCE; break;
804 case 0x2019: ch = 0xDE; break;
805 case 0xFF01: ch = 0x4F; break;
806 case 0xFF02: ch = 0x7F; break;
807 case 0xFF03: ch = 0x7B; break;
808 case 0xFF04: ch = 0x5B; break;
809 case 0xFF05: ch = 0x6C; break;
810 case 0xFF06: ch = 0x50; break;
811 case 0xFF07: ch = 0x7D; break;
812 case 0xFF08: ch = 0x4D; break;
813 case 0xFF09: ch = 0x5D; break;
814 case 0xFF0A: ch = 0x5C; break;
815 case 0xFF0B: ch = 0x4E; break;
816 case 0xFF0C: ch = 0x6B; break;
817 case 0xFF0D: ch = 0x60; break;
818 case 0xFF0E: ch = 0x4B; break;
819 case 0xFF0F: ch = 0x61; break;
820 case 0xFF10:
821 case 0xFF11:
822 case 0xFF12:
823 case 0xFF13:
824 case 0xFF14:
825 case 0xFF15:
826 case 0xFF16:
827 case 0xFF17:
828 case 0xFF18:
829 case 0xFF19:
830 ch -= 0xFE20;
831 break;
832 case 0xFF1A: ch = 0x7A; break;
833 case 0xFF1B: ch = 0x5E; break;
834 case 0xFF1C: ch = 0x4C; break;
835 case 0xFF1D: ch = 0x7E; break;
836 case 0xFF1E: ch = 0x6E; break;
837 case 0xFF1F: ch = 0x6F; break;
838 case 0xFF20: ch = 0x7C; break;
839 case 0xFF21:
840 case 0xFF22:
841 case 0xFF23:
842 case 0xFF24:
843 case 0xFF25:
844 case 0xFF26:
845 case 0xFF27:
846 case 0xFF28:
847 case 0xFF29:
848 ch -= 0xFE60;
849 break;
850 case 0xFF2A:
851 case 0xFF2B:
852 case 0xFF2C:
853 case 0xFF2D:
854 case 0xFF2E:
855 case 0xFF2F:
856 case 0xFF30:
857 case 0xFF31:
858 case 0xFF32:
859 ch -= 0xFE59;
860 break;
861 case 0xFF33:
862 case 0xFF34:
863 case 0xFF35:
864 case 0xFF36:
865 case 0xFF37:
866 case 0xFF38:
867 case 0xFF39:
868 case 0xFF3A:
869 ch -= 0xFE51;
870 break;
871 case 0xFF3B: ch = 0x4A; break;
872 case 0xFF3C: ch = 0xE0; break;
873 case 0xFF3D: ch = 0x5A; break;
874 case 0xFF3E: ch = 0x5F; break;
875 case 0xFF3F: ch = 0x6D; break;
876 case 0xFF40: ch = 0x79; break;
877 case 0xFF41:
878 case 0xFF42:
879 case 0xFF43:
880 case 0xFF44:
881 case 0xFF45:
882 case 0xFF46:
883 case 0xFF47:
884 case 0xFF48:
885 case 0xFF49:
886 ch -= 0xFEC0;
887 break;
888 case 0xFF4A:
889 case 0xFF4B:
890 case 0xFF4C:
891 case 0xFF4D:
892 case 0xFF4E:
893 case 0xFF4F:
894 case 0xFF50:
895 case 0xFF51:
896 case 0xFF52:
897 ch -= 0xFEB9;
898 break;
899 case 0xFF53:
900 case 0xFF54:
901 case 0xFF55:
902 case 0xFF56:
903 case 0xFF57:
904 case 0xFF58:
905 case 0xFF59:
906 case 0xFF5A:
907 ch -= 0xFEB1;
908 break;
909 case 0xFF5B: ch = 0xC0; break;
910 case 0xFF5C: ch = 0x6A; break;
911 case 0xFF5D: ch = 0xD0; break;
912 case 0xFF5E: ch = 0xA1; break;
913 default: ch = 0x3F; break;
915 bytes[byteIndex++] = (byte)ch;
916 --charCount;
921 }; // class CP875
923 [Serializable]
924 public class ENCibm875 : CP875
926 public ENCibm875() : base() {}
928 }; // class ENCibm875
930 }; // namespace I18N.Rare