2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / I18N / Rare / CP20277.cs
blob67f54633417e44a1edf3f8330d29548c4187f991
1 /*
2 * CP20277.cs - IBM EBCDIC (Denmark/Norway) 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-277.ucm".
27 namespace I18N.Rare
30 using System;
31 using System.Text;
32 using I18N.Common;
34 [Serializable]
35 public class CP20277 : ByteEncoding
37 public CP20277()
38 : base(20277, ToChars, "IBM EBCDIC (Denmark/Norway)",
39 "IBM277", "IBM277", "IBM277",
40 false, false, false, false, 1252)
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', '\u00A0',
55 '\u00E2', '\u00E4', '\u00E0', '\u00E1', '\u00E3', '\u007D',
56 '\u00E7', '\u00F1', '\u0023', '\u002E', '\u003C', '\u0028',
57 '\u002B', '\u0021', '\u0026', '\u00E9', '\u00EA', '\u00EB',
58 '\u00E8', '\u00ED', '\u00EE', '\u00EF', '\u00EC', '\u00DF',
59 '\u00A4', '\u00C5', '\u002A', '\u0029', '\u003B', '\u005E',
60 '\u002D', '\u002F', '\u00C2', '\u00C4', '\u00C0', '\u00C1',
61 '\u00C3', '\u0024', '\u00C7', '\u00D1', '\u00F8', '\u002C',
62 '\u0025', '\u005F', '\u003E', '\u003F', '\u00A6', '\u00C9',
63 '\u00CA', '\u00CB', '\u00C8', '\u00CD', '\u00CE', '\u00CF',
64 '\u00CC', '\u0060', '\u003A', '\u00C6', '\u00D8', '\u0027',
65 '\u003D', '\u0022', '\u0040', '\u0061', '\u0062', '\u0063',
66 '\u0064', '\u0065', '\u0066', '\u0067', '\u0068', '\u0069',
67 '\u00AB', '\u00BB', '\u00F0', '\u00FD', '\u00FE', '\u00B1',
68 '\u00B0', '\u006A', '\u006B', '\u006C', '\u006D', '\u006E',
69 '\u006F', '\u0070', '\u0071', '\u0072', '\u00AA', '\u00BA',
70 '\u007B', '\u00B8', '\u005B', '\u005D', '\u00B5', '\u00FC',
71 '\u0073', '\u0074', '\u0075', '\u0076', '\u0077', '\u0078',
72 '\u0079', '\u007A', '\u00A1', '\u00BF', '\u00D0', '\u00DD',
73 '\u00DE', '\u00AE', '\u00A2', '\u00A3', '\u00A5', '\u00B7',
74 '\u00A9', '\u00A7', '\u00B6', '\u00BC', '\u00BD', '\u00BE',
75 '\u00AC', '\u007C', '\u00AF', '\u00A8', '\u00B4', '\u00D7',
76 '\u00E6', '\u0041', '\u0042', '\u0043', '\u0044', '\u0045',
77 '\u0046', '\u0047', '\u0048', '\u0049', '\u00AD', '\u00F4',
78 '\u00F6', '\u00F2', '\u00F3', '\u00F5', '\u00E5', '\u004A',
79 '\u004B', '\u004C', '\u004D', '\u004E', '\u004F', '\u0050',
80 '\u0051', '\u0052', '\u00B9', '\u00FB', '\u007E', '\u00F9',
81 '\u00FA', '\u00FF', '\u005C', '\u00F7', '\u0053', '\u0054',
82 '\u0055', '\u0056', '\u0057', '\u0058', '\u0059', '\u005A',
83 '\u00B2', '\u00D4', '\u00D6', '\u00D2', '\u00D3', '\u00D5',
84 '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
85 '\u0036', '\u0037', '\u0038', '\u0039', '\u00B3', '\u00DB',
86 '\u00DC', '\u00D9', '\u00DA', '\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 case 0x00B6:
119 break;
120 case 0x0004: ch = 0x37; break;
121 case 0x0005: ch = 0x2D; break;
122 case 0x0006: ch = 0x2E; break;
123 case 0x0007: ch = 0x2F; break;
124 case 0x0008: ch = 0x16; break;
125 case 0x0009: ch = 0x05; break;
126 case 0x000A: ch = 0x25; break;
127 case 0x0014: ch = 0x3C; break;
128 case 0x0015: ch = 0x3D; break;
129 case 0x0016: ch = 0x32; break;
130 case 0x0017: ch = 0x26; break;
131 case 0x001A: ch = 0x3F; break;
132 case 0x001B: ch = 0x27; break;
133 case 0x0020: ch = 0x40; break;
134 case 0x0021: ch = 0x4F; break;
135 case 0x0022: ch = 0x7F; break;
136 case 0x0023: ch = 0x4A; break;
137 case 0x0024: ch = 0x67; break;
138 case 0x0025: ch = 0x6C; break;
139 case 0x0026: ch = 0x50; break;
140 case 0x0027: ch = 0x7D; break;
141 case 0x0028: ch = 0x4D; break;
142 case 0x0029: ch = 0x5D; break;
143 case 0x002A: ch = 0x5C; break;
144 case 0x002B: ch = 0x4E; break;
145 case 0x002C: ch = 0x6B; break;
146 case 0x002D: ch = 0x60; break;
147 case 0x002E: ch = 0x4B; break;
148 case 0x002F: ch = 0x61; break;
149 case 0x0030:
150 case 0x0031:
151 case 0x0032:
152 case 0x0033:
153 case 0x0034:
154 case 0x0035:
155 case 0x0036:
156 case 0x0037:
157 case 0x0038:
158 case 0x0039:
159 ch += 0x00C0;
160 break;
161 case 0x003A: ch = 0x7A; break;
162 case 0x003B: ch = 0x5E; break;
163 case 0x003C: ch = 0x4C; break;
164 case 0x003D: ch = 0x7E; break;
165 case 0x003E: ch = 0x6E; break;
166 case 0x003F: ch = 0x6F; break;
167 case 0x0040: ch = 0x80; break;
168 case 0x0041:
169 case 0x0042:
170 case 0x0043:
171 case 0x0044:
172 case 0x0045:
173 case 0x0046:
174 case 0x0047:
175 case 0x0048:
176 case 0x0049:
177 ch += 0x0080;
178 break;
179 case 0x004A:
180 case 0x004B:
181 case 0x004C:
182 case 0x004D:
183 case 0x004E:
184 case 0x004F:
185 case 0x0050:
186 case 0x0051:
187 case 0x0052:
188 ch += 0x0087;
189 break;
190 case 0x0053:
191 case 0x0054:
192 case 0x0055:
193 case 0x0056:
194 case 0x0057:
195 case 0x0058:
196 case 0x0059:
197 case 0x005A:
198 ch += 0x008F;
199 break;
200 case 0x005B: ch = 0x9E; break;
201 case 0x005C: ch = 0xE0; break;
202 case 0x005D: ch = 0x9F; break;
203 case 0x005E: ch = 0x5F; break;
204 case 0x005F: ch = 0x6D; break;
205 case 0x0060: ch = 0x79; break;
206 case 0x0061:
207 case 0x0062:
208 case 0x0063:
209 case 0x0064:
210 case 0x0065:
211 case 0x0066:
212 case 0x0067:
213 case 0x0068:
214 case 0x0069:
215 ch += 0x0020;
216 break;
217 case 0x006A:
218 case 0x006B:
219 case 0x006C:
220 case 0x006D:
221 case 0x006E:
222 case 0x006F:
223 case 0x0070:
224 case 0x0071:
225 case 0x0072:
226 ch += 0x0027;
227 break;
228 case 0x0073:
229 case 0x0074:
230 case 0x0075:
231 case 0x0076:
232 case 0x0077:
233 case 0x0078:
234 case 0x0079:
235 case 0x007A:
236 ch += 0x002F;
237 break;
238 case 0x007B: ch = 0x9C; break;
239 case 0x007C: ch = 0xBB; break;
240 case 0x007D: ch = 0x47; break;
241 case 0x007E: ch = 0xDC; break;
242 case 0x007F: ch = 0x07; break;
243 case 0x0080:
244 case 0x0081:
245 case 0x0082:
246 case 0x0083:
247 case 0x0084:
248 ch -= 0x0060;
249 break;
250 case 0x0085: ch = 0x15; break;
251 case 0x0086: ch = 0x06; break;
252 case 0x0087: ch = 0x17; break;
253 case 0x0088:
254 case 0x0089:
255 case 0x008A:
256 case 0x008B:
257 case 0x008C:
258 ch -= 0x0060;
259 break;
260 case 0x008D: ch = 0x09; break;
261 case 0x008E: ch = 0x0A; break;
262 case 0x008F: ch = 0x1B; break;
263 case 0x0090: ch = 0x30; break;
264 case 0x0091: ch = 0x31; break;
265 case 0x0092: ch = 0x1A; break;
266 case 0x0093:
267 case 0x0094:
268 case 0x0095:
269 case 0x0096:
270 ch -= 0x0060;
271 break;
272 case 0x0097: ch = 0x08; break;
273 case 0x0098:
274 case 0x0099:
275 case 0x009A:
276 case 0x009B:
277 ch -= 0x0060;
278 break;
279 case 0x009C: ch = 0x04; break;
280 case 0x009D: ch = 0x14; break;
281 case 0x009E: ch = 0x3E; break;
282 case 0x009F: ch = 0xFF; break;
283 case 0x00A0: ch = 0x41; break;
284 case 0x00A1: ch = 0xAA; break;
285 case 0x00A2: ch = 0xB0; break;
286 case 0x00A3: ch = 0xB1; break;
287 case 0x00A4: ch = 0x5A; break;
288 case 0x00A5: ch = 0xB2; break;
289 case 0x00A6: ch = 0x70; break;
290 case 0x00A7: ch = 0xB5; break;
291 case 0x00A8: ch = 0xBD; break;
292 case 0x00A9: ch = 0xB4; break;
293 case 0x00AA: ch = 0x9A; break;
294 case 0x00AB: ch = 0x8A; break;
295 case 0x00AC: ch = 0xBA; break;
296 case 0x00AD: ch = 0xCA; break;
297 case 0x00AE: ch = 0xAF; break;
298 case 0x00AF: ch = 0xBC; break;
299 case 0x00B0: ch = 0x90; break;
300 case 0x00B1: ch = 0x8F; break;
301 case 0x00B2: ch = 0xEA; break;
302 case 0x00B3: ch = 0xFA; break;
303 case 0x00B4: ch = 0xBE; break;
304 case 0x00B5: ch = 0xA0; break;
305 case 0x00B7: ch = 0xB3; break;
306 case 0x00B8: ch = 0x9D; break;
307 case 0x00B9: ch = 0xDA; break;
308 case 0x00BA: ch = 0x9B; break;
309 case 0x00BB: ch = 0x8B; break;
310 case 0x00BC: ch = 0xB7; break;
311 case 0x00BD: ch = 0xB8; break;
312 case 0x00BE: ch = 0xB9; break;
313 case 0x00BF: ch = 0xAB; break;
314 case 0x00C0: ch = 0x64; break;
315 case 0x00C1: ch = 0x65; break;
316 case 0x00C2: ch = 0x62; break;
317 case 0x00C3: ch = 0x66; break;
318 case 0x00C4: ch = 0x63; break;
319 case 0x00C5: ch = 0x5B; break;
320 case 0x00C6: ch = 0x7B; break;
321 case 0x00C7: ch = 0x68; break;
322 case 0x00C8: ch = 0x74; break;
323 case 0x00C9: ch = 0x71; break;
324 case 0x00CA: ch = 0x72; break;
325 case 0x00CB: ch = 0x73; break;
326 case 0x00CC: ch = 0x78; break;
327 case 0x00CD: ch = 0x75; break;
328 case 0x00CE: ch = 0x76; break;
329 case 0x00CF: ch = 0x77; break;
330 case 0x00D0: ch = 0xAC; break;
331 case 0x00D1: ch = 0x69; break;
332 case 0x00D2: ch = 0xED; break;
333 case 0x00D3: ch = 0xEE; break;
334 case 0x00D4: ch = 0xEB; break;
335 case 0x00D5: ch = 0xEF; break;
336 case 0x00D6: ch = 0xEC; break;
337 case 0x00D7: ch = 0xBF; break;
338 case 0x00D8: ch = 0x7C; break;
339 case 0x00D9: ch = 0xFD; break;
340 case 0x00DA: ch = 0xFE; break;
341 case 0x00DB: ch = 0xFB; break;
342 case 0x00DC: ch = 0xFC; break;
343 case 0x00DD: ch = 0xAD; break;
344 case 0x00DE: ch = 0xAE; break;
345 case 0x00DF: ch = 0x59; break;
346 case 0x00E0: ch = 0x44; break;
347 case 0x00E1: ch = 0x45; break;
348 case 0x00E2: ch = 0x42; break;
349 case 0x00E3: ch = 0x46; break;
350 case 0x00E4: ch = 0x43; break;
351 case 0x00E5: ch = 0xD0; break;
352 case 0x00E6: ch = 0xC0; break;
353 case 0x00E7: ch = 0x48; break;
354 case 0x00E8: ch = 0x54; break;
355 case 0x00E9: ch = 0x51; break;
356 case 0x00EA: ch = 0x52; break;
357 case 0x00EB: ch = 0x53; break;
358 case 0x00EC: ch = 0x58; break;
359 case 0x00ED: ch = 0x55; break;
360 case 0x00EE: ch = 0x56; break;
361 case 0x00EF: ch = 0x57; break;
362 case 0x00F0: ch = 0x8C; break;
363 case 0x00F1: ch = 0x49; break;
364 case 0x00F2: ch = 0xCD; break;
365 case 0x00F3: ch = 0xCE; break;
366 case 0x00F4: ch = 0xCB; break;
367 case 0x00F5: ch = 0xCF; break;
368 case 0x00F6: ch = 0xCC; break;
369 case 0x00F7: ch = 0xE1; break;
370 case 0x00F8: ch = 0x6A; break;
371 case 0x00F9: ch = 0xDD; break;
372 case 0x00FA: ch = 0xDE; break;
373 case 0x00FB: ch = 0xDB; break;
374 case 0x00FC: ch = 0xA1; break;
375 case 0x00FD: ch = 0x8D; break;
376 case 0x00FE: ch = 0x8E; break;
377 case 0x00FF: ch = 0xDF; break;
378 case 0x0110: ch = 0xAC; break;
379 case 0x203E: ch = 0xBC; break;
380 case 0xFF01: ch = 0x4F; break;
381 case 0xFF02: ch = 0x7F; break;
382 case 0xFF03: ch = 0x4A; break;
383 case 0xFF04: ch = 0x67; break;
384 case 0xFF05: ch = 0x6C; break;
385 case 0xFF06: ch = 0x50; break;
386 case 0xFF07: ch = 0x7D; break;
387 case 0xFF08: ch = 0x4D; break;
388 case 0xFF09: ch = 0x5D; break;
389 case 0xFF0A: ch = 0x5C; break;
390 case 0xFF0B: ch = 0x4E; break;
391 case 0xFF0C: ch = 0x6B; break;
392 case 0xFF0D: ch = 0x60; break;
393 case 0xFF0E: ch = 0x4B; break;
394 case 0xFF0F: ch = 0x61; break;
395 case 0xFF10:
396 case 0xFF11:
397 case 0xFF12:
398 case 0xFF13:
399 case 0xFF14:
400 case 0xFF15:
401 case 0xFF16:
402 case 0xFF17:
403 case 0xFF18:
404 case 0xFF19:
405 ch -= 0xFE20;
406 break;
407 case 0xFF1A: ch = 0x7A; break;
408 case 0xFF1B: ch = 0x5E; break;
409 case 0xFF1C: ch = 0x4C; break;
410 case 0xFF1D: ch = 0x7E; break;
411 case 0xFF1E: ch = 0x6E; break;
412 case 0xFF1F: ch = 0x6F; break;
413 case 0xFF20: ch = 0x80; break;
414 case 0xFF21:
415 case 0xFF22:
416 case 0xFF23:
417 case 0xFF24:
418 case 0xFF25:
419 case 0xFF26:
420 case 0xFF27:
421 case 0xFF28:
422 case 0xFF29:
423 ch -= 0xFE60;
424 break;
425 case 0xFF2A:
426 case 0xFF2B:
427 case 0xFF2C:
428 case 0xFF2D:
429 case 0xFF2E:
430 case 0xFF2F:
431 case 0xFF30:
432 case 0xFF31:
433 case 0xFF32:
434 ch -= 0xFE59;
435 break;
436 case 0xFF33:
437 case 0xFF34:
438 case 0xFF35:
439 case 0xFF36:
440 case 0xFF37:
441 case 0xFF38:
442 case 0xFF39:
443 case 0xFF3A:
444 ch -= 0xFE51;
445 break;
446 case 0xFF3B: ch = 0x9E; break;
447 case 0xFF3C: ch = 0xE0; break;
448 case 0xFF3D: ch = 0x9F; break;
449 case 0xFF3E: ch = 0x5F; break;
450 case 0xFF3F: ch = 0x6D; break;
451 case 0xFF40: ch = 0x79; break;
452 case 0xFF41:
453 case 0xFF42:
454 case 0xFF43:
455 case 0xFF44:
456 case 0xFF45:
457 case 0xFF46:
458 case 0xFF47:
459 case 0xFF48:
460 case 0xFF49:
461 ch -= 0xFEC0;
462 break;
463 case 0xFF4A:
464 case 0xFF4B:
465 case 0xFF4C:
466 case 0xFF4D:
467 case 0xFF4E:
468 case 0xFF4F:
469 case 0xFF50:
470 case 0xFF51:
471 case 0xFF52:
472 ch -= 0xFEB9;
473 break;
474 case 0xFF53:
475 case 0xFF54:
476 case 0xFF55:
477 case 0xFF56:
478 case 0xFF57:
479 case 0xFF58:
480 case 0xFF59:
481 case 0xFF5A:
482 ch -= 0xFEB1;
483 break;
484 case 0xFF5B: ch = 0x9C; break;
485 case 0xFF5C: ch = 0xBB; break;
486 case 0xFF5D: ch = 0x47; break;
487 case 0xFF5E: ch = 0xDC; break;
488 default:
489 #if NET_2_0
490 HandleFallback (ref buffer, chars, ref charIndex, ref charCount, bytes, ref byteIndex, ref byteCount);
491 #else
492 ch = 0x3F;
493 #endif
494 break;
496 bytes[byteIndex++] = (byte)ch;
497 --charCount;
498 --byteCount;
503 protected override void ToBytes(String s, int charIndex, int charCount,
504 byte[] bytes, int byteIndex)
506 int ch;
507 while(charCount > 0)
509 ch = (int)(s[charIndex++]);
510 if(ch >= 4) switch(ch)
512 case 0x000B:
513 case 0x000C:
514 case 0x000D:
515 case 0x000E:
516 case 0x000F:
517 case 0x0010:
518 case 0x0011:
519 case 0x0012:
520 case 0x0013:
521 case 0x0018:
522 case 0x0019:
523 case 0x001C:
524 case 0x001D:
525 case 0x001E:
526 case 0x001F:
527 case 0x00B6:
528 break;
529 case 0x0004: ch = 0x37; break;
530 case 0x0005: ch = 0x2D; break;
531 case 0x0006: ch = 0x2E; break;
532 case 0x0007: ch = 0x2F; break;
533 case 0x0008: ch = 0x16; break;
534 case 0x0009: ch = 0x05; break;
535 case 0x000A: ch = 0x25; break;
536 case 0x0014: ch = 0x3C; break;
537 case 0x0015: ch = 0x3D; break;
538 case 0x0016: ch = 0x32; break;
539 case 0x0017: ch = 0x26; break;
540 case 0x001A: ch = 0x3F; break;
541 case 0x001B: ch = 0x27; break;
542 case 0x0020: ch = 0x40; break;
543 case 0x0021: ch = 0x4F; break;
544 case 0x0022: ch = 0x7F; break;
545 case 0x0023: ch = 0x4A; break;
546 case 0x0024: ch = 0x67; break;
547 case 0x0025: ch = 0x6C; break;
548 case 0x0026: ch = 0x50; break;
549 case 0x0027: ch = 0x7D; break;
550 case 0x0028: ch = 0x4D; break;
551 case 0x0029: ch = 0x5D; break;
552 case 0x002A: ch = 0x5C; break;
553 case 0x002B: ch = 0x4E; break;
554 case 0x002C: ch = 0x6B; break;
555 case 0x002D: ch = 0x60; break;
556 case 0x002E: ch = 0x4B; break;
557 case 0x002F: ch = 0x61; break;
558 case 0x0030:
559 case 0x0031:
560 case 0x0032:
561 case 0x0033:
562 case 0x0034:
563 case 0x0035:
564 case 0x0036:
565 case 0x0037:
566 case 0x0038:
567 case 0x0039:
568 ch += 0x00C0;
569 break;
570 case 0x003A: ch = 0x7A; break;
571 case 0x003B: ch = 0x5E; break;
572 case 0x003C: ch = 0x4C; break;
573 case 0x003D: ch = 0x7E; break;
574 case 0x003E: ch = 0x6E; break;
575 case 0x003F: ch = 0x6F; break;
576 case 0x0040: ch = 0x80; break;
577 case 0x0041:
578 case 0x0042:
579 case 0x0043:
580 case 0x0044:
581 case 0x0045:
582 case 0x0046:
583 case 0x0047:
584 case 0x0048:
585 case 0x0049:
586 ch += 0x0080;
587 break;
588 case 0x004A:
589 case 0x004B:
590 case 0x004C:
591 case 0x004D:
592 case 0x004E:
593 case 0x004F:
594 case 0x0050:
595 case 0x0051:
596 case 0x0052:
597 ch += 0x0087;
598 break;
599 case 0x0053:
600 case 0x0054:
601 case 0x0055:
602 case 0x0056:
603 case 0x0057:
604 case 0x0058:
605 case 0x0059:
606 case 0x005A:
607 ch += 0x008F;
608 break;
609 case 0x005B: ch = 0x9E; break;
610 case 0x005C: ch = 0xE0; break;
611 case 0x005D: ch = 0x9F; break;
612 case 0x005E: ch = 0x5F; break;
613 case 0x005F: ch = 0x6D; break;
614 case 0x0060: ch = 0x79; break;
615 case 0x0061:
616 case 0x0062:
617 case 0x0063:
618 case 0x0064:
619 case 0x0065:
620 case 0x0066:
621 case 0x0067:
622 case 0x0068:
623 case 0x0069:
624 ch += 0x0020;
625 break;
626 case 0x006A:
627 case 0x006B:
628 case 0x006C:
629 case 0x006D:
630 case 0x006E:
631 case 0x006F:
632 case 0x0070:
633 case 0x0071:
634 case 0x0072:
635 ch += 0x0027;
636 break;
637 case 0x0073:
638 case 0x0074:
639 case 0x0075:
640 case 0x0076:
641 case 0x0077:
642 case 0x0078:
643 case 0x0079:
644 case 0x007A:
645 ch += 0x002F;
646 break;
647 case 0x007B: ch = 0x9C; break;
648 case 0x007C: ch = 0xBB; break;
649 case 0x007D: ch = 0x47; break;
650 case 0x007E: ch = 0xDC; break;
651 case 0x007F: ch = 0x07; break;
652 case 0x0080:
653 case 0x0081:
654 case 0x0082:
655 case 0x0083:
656 case 0x0084:
657 ch -= 0x0060;
658 break;
659 case 0x0085: ch = 0x15; break;
660 case 0x0086: ch = 0x06; break;
661 case 0x0087: ch = 0x17; break;
662 case 0x0088:
663 case 0x0089:
664 case 0x008A:
665 case 0x008B:
666 case 0x008C:
667 ch -= 0x0060;
668 break;
669 case 0x008D: ch = 0x09; break;
670 case 0x008E: ch = 0x0A; break;
671 case 0x008F: ch = 0x1B; break;
672 case 0x0090: ch = 0x30; break;
673 case 0x0091: ch = 0x31; break;
674 case 0x0092: ch = 0x1A; break;
675 case 0x0093:
676 case 0x0094:
677 case 0x0095:
678 case 0x0096:
679 ch -= 0x0060;
680 break;
681 case 0x0097: ch = 0x08; break;
682 case 0x0098:
683 case 0x0099:
684 case 0x009A:
685 case 0x009B:
686 ch -= 0x0060;
687 break;
688 case 0x009C: ch = 0x04; break;
689 case 0x009D: ch = 0x14; break;
690 case 0x009E: ch = 0x3E; break;
691 case 0x009F: ch = 0xFF; break;
692 case 0x00A0: ch = 0x41; break;
693 case 0x00A1: ch = 0xAA; break;
694 case 0x00A2: ch = 0xB0; break;
695 case 0x00A3: ch = 0xB1; break;
696 case 0x00A4: ch = 0x5A; break;
697 case 0x00A5: ch = 0xB2; break;
698 case 0x00A6: ch = 0x70; break;
699 case 0x00A7: ch = 0xB5; break;
700 case 0x00A8: ch = 0xBD; break;
701 case 0x00A9: ch = 0xB4; break;
702 case 0x00AA: ch = 0x9A; break;
703 case 0x00AB: ch = 0x8A; break;
704 case 0x00AC: ch = 0xBA; break;
705 case 0x00AD: ch = 0xCA; break;
706 case 0x00AE: ch = 0xAF; break;
707 case 0x00AF: ch = 0xBC; break;
708 case 0x00B0: ch = 0x90; break;
709 case 0x00B1: ch = 0x8F; break;
710 case 0x00B2: ch = 0xEA; break;
711 case 0x00B3: ch = 0xFA; break;
712 case 0x00B4: ch = 0xBE; break;
713 case 0x00B5: ch = 0xA0; break;
714 case 0x00B7: ch = 0xB3; break;
715 case 0x00B8: ch = 0x9D; break;
716 case 0x00B9: ch = 0xDA; break;
717 case 0x00BA: ch = 0x9B; break;
718 case 0x00BB: ch = 0x8B; break;
719 case 0x00BC: ch = 0xB7; break;
720 case 0x00BD: ch = 0xB8; break;
721 case 0x00BE: ch = 0xB9; break;
722 case 0x00BF: ch = 0xAB; break;
723 case 0x00C0: ch = 0x64; break;
724 case 0x00C1: ch = 0x65; break;
725 case 0x00C2: ch = 0x62; break;
726 case 0x00C3: ch = 0x66; break;
727 case 0x00C4: ch = 0x63; break;
728 case 0x00C5: ch = 0x5B; break;
729 case 0x00C6: ch = 0x7B; break;
730 case 0x00C7: ch = 0x68; break;
731 case 0x00C8: ch = 0x74; break;
732 case 0x00C9: ch = 0x71; break;
733 case 0x00CA: ch = 0x72; break;
734 case 0x00CB: ch = 0x73; break;
735 case 0x00CC: ch = 0x78; break;
736 case 0x00CD: ch = 0x75; break;
737 case 0x00CE: ch = 0x76; break;
738 case 0x00CF: ch = 0x77; break;
739 case 0x00D0: ch = 0xAC; break;
740 case 0x00D1: ch = 0x69; break;
741 case 0x00D2: ch = 0xED; break;
742 case 0x00D3: ch = 0xEE; break;
743 case 0x00D4: ch = 0xEB; break;
744 case 0x00D5: ch = 0xEF; break;
745 case 0x00D6: ch = 0xEC; break;
746 case 0x00D7: ch = 0xBF; break;
747 case 0x00D8: ch = 0x7C; break;
748 case 0x00D9: ch = 0xFD; break;
749 case 0x00DA: ch = 0xFE; break;
750 case 0x00DB: ch = 0xFB; break;
751 case 0x00DC: ch = 0xFC; break;
752 case 0x00DD: ch = 0xAD; break;
753 case 0x00DE: ch = 0xAE; break;
754 case 0x00DF: ch = 0x59; break;
755 case 0x00E0: ch = 0x44; break;
756 case 0x00E1: ch = 0x45; break;
757 case 0x00E2: ch = 0x42; break;
758 case 0x00E3: ch = 0x46; break;
759 case 0x00E4: ch = 0x43; break;
760 case 0x00E5: ch = 0xD0; break;
761 case 0x00E6: ch = 0xC0; break;
762 case 0x00E7: ch = 0x48; break;
763 case 0x00E8: ch = 0x54; break;
764 case 0x00E9: ch = 0x51; break;
765 case 0x00EA: ch = 0x52; break;
766 case 0x00EB: ch = 0x53; break;
767 case 0x00EC: ch = 0x58; break;
768 case 0x00ED: ch = 0x55; break;
769 case 0x00EE: ch = 0x56; break;
770 case 0x00EF: ch = 0x57; break;
771 case 0x00F0: ch = 0x8C; break;
772 case 0x00F1: ch = 0x49; break;
773 case 0x00F2: ch = 0xCD; break;
774 case 0x00F3: ch = 0xCE; break;
775 case 0x00F4: ch = 0xCB; break;
776 case 0x00F5: ch = 0xCF; break;
777 case 0x00F6: ch = 0xCC; break;
778 case 0x00F7: ch = 0xE1; break;
779 case 0x00F8: ch = 0x6A; break;
780 case 0x00F9: ch = 0xDD; break;
781 case 0x00FA: ch = 0xDE; break;
782 case 0x00FB: ch = 0xDB; break;
783 case 0x00FC: ch = 0xA1; break;
784 case 0x00FD: ch = 0x8D; break;
785 case 0x00FE: ch = 0x8E; break;
786 case 0x00FF: ch = 0xDF; break;
787 case 0x0110: ch = 0xAC; break;
788 case 0x203E: ch = 0xBC; break;
789 case 0xFF01: ch = 0x4F; break;
790 case 0xFF02: ch = 0x7F; break;
791 case 0xFF03: ch = 0x4A; break;
792 case 0xFF04: ch = 0x67; break;
793 case 0xFF05: ch = 0x6C; break;
794 case 0xFF06: ch = 0x50; break;
795 case 0xFF07: ch = 0x7D; break;
796 case 0xFF08: ch = 0x4D; break;
797 case 0xFF09: ch = 0x5D; break;
798 case 0xFF0A: ch = 0x5C; break;
799 case 0xFF0B: ch = 0x4E; break;
800 case 0xFF0C: ch = 0x6B; break;
801 case 0xFF0D: ch = 0x60; break;
802 case 0xFF0E: ch = 0x4B; break;
803 case 0xFF0F: ch = 0x61; break;
804 case 0xFF10:
805 case 0xFF11:
806 case 0xFF12:
807 case 0xFF13:
808 case 0xFF14:
809 case 0xFF15:
810 case 0xFF16:
811 case 0xFF17:
812 case 0xFF18:
813 case 0xFF19:
814 ch -= 0xFE20;
815 break;
816 case 0xFF1A: ch = 0x7A; break;
817 case 0xFF1B: ch = 0x5E; break;
818 case 0xFF1C: ch = 0x4C; break;
819 case 0xFF1D: ch = 0x7E; break;
820 case 0xFF1E: ch = 0x6E; break;
821 case 0xFF1F: ch = 0x6F; break;
822 case 0xFF20: ch = 0x80; break;
823 case 0xFF21:
824 case 0xFF22:
825 case 0xFF23:
826 case 0xFF24:
827 case 0xFF25:
828 case 0xFF26:
829 case 0xFF27:
830 case 0xFF28:
831 case 0xFF29:
832 ch -= 0xFE60;
833 break;
834 case 0xFF2A:
835 case 0xFF2B:
836 case 0xFF2C:
837 case 0xFF2D:
838 case 0xFF2E:
839 case 0xFF2F:
840 case 0xFF30:
841 case 0xFF31:
842 case 0xFF32:
843 ch -= 0xFE59;
844 break;
845 case 0xFF33:
846 case 0xFF34:
847 case 0xFF35:
848 case 0xFF36:
849 case 0xFF37:
850 case 0xFF38:
851 case 0xFF39:
852 case 0xFF3A:
853 ch -= 0xFE51;
854 break;
855 case 0xFF3B: ch = 0x9E; break;
856 case 0xFF3C: ch = 0xE0; break;
857 case 0xFF3D: ch = 0x9F; break;
858 case 0xFF3E: ch = 0x5F; break;
859 case 0xFF3F: ch = 0x6D; break;
860 case 0xFF40: ch = 0x79; break;
861 case 0xFF41:
862 case 0xFF42:
863 case 0xFF43:
864 case 0xFF44:
865 case 0xFF45:
866 case 0xFF46:
867 case 0xFF47:
868 case 0xFF48:
869 case 0xFF49:
870 ch -= 0xFEC0;
871 break;
872 case 0xFF4A:
873 case 0xFF4B:
874 case 0xFF4C:
875 case 0xFF4D:
876 case 0xFF4E:
877 case 0xFF4F:
878 case 0xFF50:
879 case 0xFF51:
880 case 0xFF52:
881 ch -= 0xFEB9;
882 break;
883 case 0xFF53:
884 case 0xFF54:
885 case 0xFF55:
886 case 0xFF56:
887 case 0xFF57:
888 case 0xFF58:
889 case 0xFF59:
890 case 0xFF5A:
891 ch -= 0xFEB1;
892 break;
893 case 0xFF5B: ch = 0x9C; break;
894 case 0xFF5C: ch = 0xBB; break;
895 case 0xFF5D: ch = 0x47; break;
896 case 0xFF5E: ch = 0xDC; break;
897 default: ch = 0x3F; break;
899 bytes[byteIndex++] = (byte)ch;
900 --charCount;
905 }; // class CP20277
907 [Serializable]
908 public class ENCibm277 : CP20277
910 public ENCibm277() : base() {}
912 }; // class ENCibm277
914 }; // namespace I18N.Rare