2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / I18N / Rare / CP858.cs
blob720ee1e6f37891556f9ab2ea0b8ca1705377dc55
1 /*
2 * CP858.cs - Western European (DOS with Euro) 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-858.ucm".
27 namespace I18N.Rare
30 using System;
31 using System.Text;
32 using I18N.Common;
34 [Serializable]
35 public class CP858 : ByteEncoding
37 public CP858()
38 : base(858, ToChars, "Western European (DOS with Euro)",
39 "IBM00858", "IBM00858", "IBM00858",
40 false, false, false, false, 1252)
43 private static readonly char[] ToChars = {
44 '\u0000', '\u0001', '\u0002', '\u0003', '\u0004', '\u0005',
45 '\u0006', '\u0007', '\u0008', '\u0009', '\u000A', '\u000B',
46 '\u000C', '\u000D', '\u000E', '\u000F', '\u0010', '\u0011',
47 '\u0012', '\u0013', '\u0014', '\u0015', '\u0016', '\u0017',
48 '\u0018', '\u0019', '\u001C', '\u001B', '\u007F', '\u001D',
49 '\u001E', '\u001F', '\u0020', '\u0021', '\u0022', '\u0023',
50 '\u0024', '\u0025', '\u0026', '\u0027', '\u0028', '\u0029',
51 '\u002A', '\u002B', '\u002C', '\u002D', '\u002E', '\u002F',
52 '\u0030', '\u0031', '\u0032', '\u0033', '\u0034', '\u0035',
53 '\u0036', '\u0037', '\u0038', '\u0039', '\u003A', '\u003B',
54 '\u003C', '\u003D', '\u003E', '\u003F', '\u0040', '\u0041',
55 '\u0042', '\u0043', '\u0044', '\u0045', '\u0046', '\u0047',
56 '\u0048', '\u0049', '\u004A', '\u004B', '\u004C', '\u004D',
57 '\u004E', '\u004F', '\u0050', '\u0051', '\u0052', '\u0053',
58 '\u0054', '\u0055', '\u0056', '\u0057', '\u0058', '\u0059',
59 '\u005A', '\u005B', '\u005C', '\u005D', '\u005E', '\u005F',
60 '\u0060', '\u0061', '\u0062', '\u0063', '\u0064', '\u0065',
61 '\u0066', '\u0067', '\u0068', '\u0069', '\u006A', '\u006B',
62 '\u006C', '\u006D', '\u006E', '\u006F', '\u0070', '\u0071',
63 '\u0072', '\u0073', '\u0074', '\u0075', '\u0076', '\u0077',
64 '\u0078', '\u0079', '\u007A', '\u007B', '\u007C', '\u007D',
65 '\u007E', '\u001A', '\u00C7', '\u00FC', '\u00E9', '\u00E2',
66 '\u00E4', '\u00E0', '\u00E5', '\u00E7', '\u00EA', '\u00EB',
67 '\u00E8', '\u00EF', '\u00EE', '\u00EC', '\u00C4', '\u00C5',
68 '\u00C9', '\u00E6', '\u00C6', '\u00F4', '\u00F6', '\u00F2',
69 '\u00FB', '\u00F9', '\u00FF', '\u00D6', '\u00DC', '\u00F8',
70 '\u00A3', '\u00D8', '\u00D7', '\u0192', '\u00E1', '\u00ED',
71 '\u00F3', '\u00FA', '\u00F1', '\u00D1', '\u00AA', '\u00BA',
72 '\u00BF', '\u00AE', '\u00AC', '\u00BD', '\u00BC', '\u00A1',
73 '\u00AB', '\u00BB', '\u2591', '\u2592', '\u2593', '\u2502',
74 '\u2524', '\u00C1', '\u00C2', '\u00C0', '\u00A9', '\u2563',
75 '\u2551', '\u2557', '\u255D', '\u00A2', '\u00A5', '\u2510',
76 '\u2514', '\u2534', '\u252C', '\u251C', '\u2500', '\u253C',
77 '\u00E3', '\u00C3', '\u255A', '\u2554', '\u2569', '\u2566',
78 '\u2560', '\u2550', '\u256C', '\u00A4', '\u00F0', '\u00D0',
79 '\u00CA', '\u00CB', '\u00C8', '\u20AC', '\u00CD', '\u00CE',
80 '\u00CF', '\u2518', '\u250C', '\u2588', '\u2584', '\u00A6',
81 '\u00CC', '\u2580', '\u00D3', '\u00DF', '\u00D4', '\u00D2',
82 '\u00F5', '\u00D5', '\u00B5', '\u00FE', '\u00DE', '\u00DA',
83 '\u00DB', '\u00D9', '\u00FD', '\u00DD', '\u00AF', '\u00B4',
84 '\u00AD', '\u00B1', '\u2017', '\u00BE', '\u00B6', '\u00A7',
85 '\u00F7', '\u00B8', '\u00B0', '\u00A8', '\u00B7', '\u00B9',
86 '\u00B3', '\u00B2', '\u25A0', '\u00A0',
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 >= 26) switch(ch)
103 case 0x001B:
104 case 0x001D:
105 case 0x001E:
106 case 0x001F:
107 case 0x0020:
108 case 0x0021:
109 case 0x0022:
110 case 0x0023:
111 case 0x0024:
112 case 0x0025:
113 case 0x0026:
114 case 0x0027:
115 case 0x0028:
116 case 0x0029:
117 case 0x002A:
118 case 0x002B:
119 case 0x002C:
120 case 0x002D:
121 case 0x002E:
122 case 0x002F:
123 case 0x0030:
124 case 0x0031:
125 case 0x0032:
126 case 0x0033:
127 case 0x0034:
128 case 0x0035:
129 case 0x0036:
130 case 0x0037:
131 case 0x0038:
132 case 0x0039:
133 case 0x003A:
134 case 0x003B:
135 case 0x003C:
136 case 0x003D:
137 case 0x003E:
138 case 0x003F:
139 case 0x0040:
140 case 0x0041:
141 case 0x0042:
142 case 0x0043:
143 case 0x0044:
144 case 0x0045:
145 case 0x0046:
146 case 0x0047:
147 case 0x0048:
148 case 0x0049:
149 case 0x004A:
150 case 0x004B:
151 case 0x004C:
152 case 0x004D:
153 case 0x004E:
154 case 0x004F:
155 case 0x0050:
156 case 0x0051:
157 case 0x0052:
158 case 0x0053:
159 case 0x0054:
160 case 0x0055:
161 case 0x0056:
162 case 0x0057:
163 case 0x0058:
164 case 0x0059:
165 case 0x005A:
166 case 0x005B:
167 case 0x005C:
168 case 0x005D:
169 case 0x005E:
170 case 0x005F:
171 case 0x0060:
172 case 0x0061:
173 case 0x0062:
174 case 0x0063:
175 case 0x0064:
176 case 0x0065:
177 case 0x0066:
178 case 0x0067:
179 case 0x0068:
180 case 0x0069:
181 case 0x006A:
182 case 0x006B:
183 case 0x006C:
184 case 0x006D:
185 case 0x006E:
186 case 0x006F:
187 case 0x0070:
188 case 0x0071:
189 case 0x0072:
190 case 0x0073:
191 case 0x0074:
192 case 0x0075:
193 case 0x0076:
194 case 0x0077:
195 case 0x0078:
196 case 0x0079:
197 case 0x007A:
198 case 0x007B:
199 case 0x007C:
200 case 0x007D:
201 case 0x007E:
202 break;
203 case 0x001A: ch = 0x7F; break;
204 case 0x001C: ch = 0x1A; break;
205 case 0x007F: ch = 0x1C; break;
206 case 0x00A0: ch = 0xFF; break;
207 case 0x00A1: ch = 0xAD; break;
208 case 0x00A2: ch = 0xBD; break;
209 case 0x00A3: ch = 0x9C; break;
210 case 0x00A4: ch = 0xCF; break;
211 case 0x00A5: ch = 0xBE; break;
212 case 0x00A6: ch = 0xDD; break;
213 case 0x00A7: ch = 0xF5; break;
214 case 0x00A8: ch = 0xF9; break;
215 case 0x00A9: ch = 0xB8; break;
216 case 0x00AA: ch = 0xA6; break;
217 case 0x00AB: ch = 0xAE; break;
218 case 0x00AC: ch = 0xAA; break;
219 case 0x00AD: ch = 0xF0; break;
220 case 0x00AE: ch = 0xA9; break;
221 case 0x00AF: ch = 0xEE; break;
222 case 0x00B0: ch = 0xF8; break;
223 case 0x00B1: ch = 0xF1; break;
224 case 0x00B2: ch = 0xFD; break;
225 case 0x00B3: ch = 0xFC; break;
226 case 0x00B4: ch = 0xEF; break;
227 case 0x00B5: ch = 0xE6; break;
228 case 0x00B6: ch = 0xF4; break;
229 case 0x00B7: ch = 0xFA; break;
230 case 0x00B8: ch = 0xF7; break;
231 case 0x00B9: ch = 0xFB; break;
232 case 0x00BA: ch = 0xA7; break;
233 case 0x00BB: ch = 0xAF; break;
234 case 0x00BC: ch = 0xAC; break;
235 case 0x00BD: ch = 0xAB; break;
236 case 0x00BE: ch = 0xF3; break;
237 case 0x00BF: ch = 0xA8; break;
238 case 0x00C0: ch = 0xB7; break;
239 case 0x00C1: ch = 0xB5; break;
240 case 0x00C2: ch = 0xB6; break;
241 case 0x00C3: ch = 0xC7; break;
242 case 0x00C4: ch = 0x8E; break;
243 case 0x00C5: ch = 0x8F; break;
244 case 0x00C6: ch = 0x92; break;
245 case 0x00C7: ch = 0x80; break;
246 case 0x00C8: ch = 0xD4; break;
247 case 0x00C9: ch = 0x90; break;
248 case 0x00CA: ch = 0xD2; break;
249 case 0x00CB: ch = 0xD3; break;
250 case 0x00CC: ch = 0xDE; break;
251 case 0x00CD: ch = 0xD6; break;
252 case 0x00CE: ch = 0xD7; break;
253 case 0x00CF: ch = 0xD8; break;
254 case 0x00D0: ch = 0xD1; break;
255 case 0x00D1: ch = 0xA5; break;
256 case 0x00D2: ch = 0xE3; break;
257 case 0x00D3: ch = 0xE0; break;
258 case 0x00D4: ch = 0xE2; break;
259 case 0x00D5: ch = 0xE5; break;
260 case 0x00D6: ch = 0x99; break;
261 case 0x00D7: ch = 0x9E; break;
262 case 0x00D8: ch = 0x9D; break;
263 case 0x00D9: ch = 0xEB; break;
264 case 0x00DA: ch = 0xE9; break;
265 case 0x00DB: ch = 0xEA; break;
266 case 0x00DC: ch = 0x9A; break;
267 case 0x00DD: ch = 0xED; break;
268 case 0x00DE: ch = 0xE8; break;
269 case 0x00DF: ch = 0xE1; break;
270 case 0x00E0: ch = 0x85; break;
271 case 0x00E1: ch = 0xA0; break;
272 case 0x00E2: ch = 0x83; break;
273 case 0x00E3: ch = 0xC6; break;
274 case 0x00E4: ch = 0x84; break;
275 case 0x00E5: ch = 0x86; break;
276 case 0x00E6: ch = 0x91; break;
277 case 0x00E7: ch = 0x87; break;
278 case 0x00E8: ch = 0x8A; break;
279 case 0x00E9: ch = 0x82; break;
280 case 0x00EA: ch = 0x88; break;
281 case 0x00EB: ch = 0x89; break;
282 case 0x00EC: ch = 0x8D; break;
283 case 0x00ED: ch = 0xA1; break;
284 case 0x00EE: ch = 0x8C; break;
285 case 0x00EF: ch = 0x8B; break;
286 case 0x00F0: ch = 0xD0; break;
287 case 0x00F1: ch = 0xA4; break;
288 case 0x00F2: ch = 0x95; break;
289 case 0x00F3: ch = 0xA2; break;
290 case 0x00F4: ch = 0x93; break;
291 case 0x00F5: ch = 0xE4; break;
292 case 0x00F6: ch = 0x94; break;
293 case 0x00F7: ch = 0xF6; break;
294 case 0x00F8: ch = 0x9B; break;
295 case 0x00F9: ch = 0x97; break;
296 case 0x00FA: ch = 0xA3; break;
297 case 0x00FB: ch = 0x96; break;
298 case 0x00FC: ch = 0x81; break;
299 case 0x00FD: ch = 0xEC; break;
300 case 0x00FE: ch = 0xE7; break;
301 case 0x00FF: ch = 0x98; break;
302 case 0x0192: ch = 0x9F; break;
303 case 0x2017: ch = 0xF2; break;
304 case 0x2022: ch = 0x07; break;
305 case 0x203C: ch = 0x13; break;
306 case 0x203E: ch = 0xEE; break;
307 case 0x20AC: ch = 0xD5; break;
308 case 0x2190: ch = 0x1B; break;
309 case 0x2191: ch = 0x18; break;
310 case 0x2192: ch = 0x1A; break;
311 case 0x2193: ch = 0x19; break;
312 case 0x2194: ch = 0x1D; break;
313 case 0x2195: ch = 0x12; break;
314 case 0x21A8: ch = 0x17; break;
315 case 0x221F: ch = 0x1C; break;
316 case 0x2302: ch = 0x7F; break;
317 case 0x2500: ch = 0xC4; break;
318 case 0x2502: ch = 0xB3; break;
319 case 0x250C: ch = 0xDA; break;
320 case 0x2510: ch = 0xBF; break;
321 case 0x2514: ch = 0xC0; break;
322 case 0x2518: ch = 0xD9; break;
323 case 0x251C: ch = 0xC3; break;
324 case 0x2524: ch = 0xB4; break;
325 case 0x252C: ch = 0xC2; break;
326 case 0x2534: ch = 0xC1; break;
327 case 0x253C: ch = 0xC5; break;
328 case 0x2550: ch = 0xCD; break;
329 case 0x2551: ch = 0xBA; break;
330 case 0x2554: ch = 0xC9; break;
331 case 0x2557: ch = 0xBB; break;
332 case 0x255A: ch = 0xC8; break;
333 case 0x255D: ch = 0xBC; break;
334 case 0x2560: ch = 0xCC; break;
335 case 0x2563: ch = 0xB9; break;
336 case 0x2566: ch = 0xCB; break;
337 case 0x2569: ch = 0xCA; break;
338 case 0x256C: ch = 0xCE; break;
339 case 0x2580: ch = 0xDF; break;
340 case 0x2584: ch = 0xDC; break;
341 case 0x2588: ch = 0xDB; break;
342 case 0x2591: ch = 0xB0; break;
343 case 0x2592: ch = 0xB1; break;
344 case 0x2593: ch = 0xB2; break;
345 case 0x25A0: ch = 0xFE; break;
346 case 0x25AC: ch = 0x16; break;
347 case 0x25B2: ch = 0x1E; break;
348 case 0x25BA: ch = 0x10; break;
349 case 0x25BC: ch = 0x1F; break;
350 case 0x25C4: ch = 0x11; break;
351 case 0x25CB: ch = 0x09; break;
352 case 0x25D8: ch = 0x08; break;
353 case 0x25D9: ch = 0x0A; break;
354 case 0x263A: ch = 0x01; break;
355 case 0x263B: ch = 0x02; break;
356 case 0x263C: ch = 0x0F; break;
357 case 0x2640: ch = 0x0C; break;
358 case 0x2642: ch = 0x0B; break;
359 case 0x2660: ch = 0x06; break;
360 case 0x2663: ch = 0x05; break;
361 case 0x2665: ch = 0x03; break;
362 case 0x2666: ch = 0x04; break;
363 case 0x266A: ch = 0x0D; break;
364 case 0x266C: ch = 0x0E; break;
365 case 0xFFE8: ch = 0xB3; break;
366 case 0xFFE9: ch = 0x1B; break;
367 case 0xFFEA: ch = 0x18; break;
368 case 0xFFEB: ch = 0x1A; break;
369 case 0xFFEC: ch = 0x19; break;
370 case 0xFFED: ch = 0xFE; break;
371 case 0xFFEE: ch = 0x09; break;
372 default:
374 if(ch >= 0xFF01 && ch <= 0xFF5E)
375 ch -= 0xFEE0;
376 else
377 #if NET_2_0
378 HandleFallback (ref buffer, chars, ref charIndex, ref charCount, bytes, ref byteIndex, ref byteCount);
379 #else
380 ch = 0x3F;
381 #endif
383 break;
385 bytes[byteIndex++] = (byte)ch;
386 --charCount;
387 --byteCount;
392 protected override void ToBytes(String s, int charIndex, int charCount,
393 byte[] bytes, int byteIndex)
395 int ch;
396 while(charCount > 0)
398 ch = (int)(s[charIndex++]);
399 if(ch >= 26) switch(ch)
401 case 0x001B:
402 case 0x001D:
403 case 0x001E:
404 case 0x001F:
405 case 0x0020:
406 case 0x0021:
407 case 0x0022:
408 case 0x0023:
409 case 0x0024:
410 case 0x0025:
411 case 0x0026:
412 case 0x0027:
413 case 0x0028:
414 case 0x0029:
415 case 0x002A:
416 case 0x002B:
417 case 0x002C:
418 case 0x002D:
419 case 0x002E:
420 case 0x002F:
421 case 0x0030:
422 case 0x0031:
423 case 0x0032:
424 case 0x0033:
425 case 0x0034:
426 case 0x0035:
427 case 0x0036:
428 case 0x0037:
429 case 0x0038:
430 case 0x0039:
431 case 0x003A:
432 case 0x003B:
433 case 0x003C:
434 case 0x003D:
435 case 0x003E:
436 case 0x003F:
437 case 0x0040:
438 case 0x0041:
439 case 0x0042:
440 case 0x0043:
441 case 0x0044:
442 case 0x0045:
443 case 0x0046:
444 case 0x0047:
445 case 0x0048:
446 case 0x0049:
447 case 0x004A:
448 case 0x004B:
449 case 0x004C:
450 case 0x004D:
451 case 0x004E:
452 case 0x004F:
453 case 0x0050:
454 case 0x0051:
455 case 0x0052:
456 case 0x0053:
457 case 0x0054:
458 case 0x0055:
459 case 0x0056:
460 case 0x0057:
461 case 0x0058:
462 case 0x0059:
463 case 0x005A:
464 case 0x005B:
465 case 0x005C:
466 case 0x005D:
467 case 0x005E:
468 case 0x005F:
469 case 0x0060:
470 case 0x0061:
471 case 0x0062:
472 case 0x0063:
473 case 0x0064:
474 case 0x0065:
475 case 0x0066:
476 case 0x0067:
477 case 0x0068:
478 case 0x0069:
479 case 0x006A:
480 case 0x006B:
481 case 0x006C:
482 case 0x006D:
483 case 0x006E:
484 case 0x006F:
485 case 0x0070:
486 case 0x0071:
487 case 0x0072:
488 case 0x0073:
489 case 0x0074:
490 case 0x0075:
491 case 0x0076:
492 case 0x0077:
493 case 0x0078:
494 case 0x0079:
495 case 0x007A:
496 case 0x007B:
497 case 0x007C:
498 case 0x007D:
499 case 0x007E:
500 break;
501 case 0x001A: ch = 0x7F; break;
502 case 0x001C: ch = 0x1A; break;
503 case 0x007F: ch = 0x1C; break;
504 case 0x00A0: ch = 0xFF; break;
505 case 0x00A1: ch = 0xAD; break;
506 case 0x00A2: ch = 0xBD; break;
507 case 0x00A3: ch = 0x9C; break;
508 case 0x00A4: ch = 0xCF; break;
509 case 0x00A5: ch = 0xBE; break;
510 case 0x00A6: ch = 0xDD; break;
511 case 0x00A7: ch = 0xF5; break;
512 case 0x00A8: ch = 0xF9; break;
513 case 0x00A9: ch = 0xB8; break;
514 case 0x00AA: ch = 0xA6; break;
515 case 0x00AB: ch = 0xAE; break;
516 case 0x00AC: ch = 0xAA; break;
517 case 0x00AD: ch = 0xF0; break;
518 case 0x00AE: ch = 0xA9; break;
519 case 0x00AF: ch = 0xEE; break;
520 case 0x00B0: ch = 0xF8; break;
521 case 0x00B1: ch = 0xF1; break;
522 case 0x00B2: ch = 0xFD; break;
523 case 0x00B3: ch = 0xFC; break;
524 case 0x00B4: ch = 0xEF; break;
525 case 0x00B5: ch = 0xE6; break;
526 case 0x00B6: ch = 0xF4; break;
527 case 0x00B7: ch = 0xFA; break;
528 case 0x00B8: ch = 0xF7; break;
529 case 0x00B9: ch = 0xFB; break;
530 case 0x00BA: ch = 0xA7; break;
531 case 0x00BB: ch = 0xAF; break;
532 case 0x00BC: ch = 0xAC; break;
533 case 0x00BD: ch = 0xAB; break;
534 case 0x00BE: ch = 0xF3; break;
535 case 0x00BF: ch = 0xA8; break;
536 case 0x00C0: ch = 0xB7; break;
537 case 0x00C1: ch = 0xB5; break;
538 case 0x00C2: ch = 0xB6; break;
539 case 0x00C3: ch = 0xC7; break;
540 case 0x00C4: ch = 0x8E; break;
541 case 0x00C5: ch = 0x8F; break;
542 case 0x00C6: ch = 0x92; break;
543 case 0x00C7: ch = 0x80; break;
544 case 0x00C8: ch = 0xD4; break;
545 case 0x00C9: ch = 0x90; break;
546 case 0x00CA: ch = 0xD2; break;
547 case 0x00CB: ch = 0xD3; break;
548 case 0x00CC: ch = 0xDE; break;
549 case 0x00CD: ch = 0xD6; break;
550 case 0x00CE: ch = 0xD7; break;
551 case 0x00CF: ch = 0xD8; break;
552 case 0x00D0: ch = 0xD1; break;
553 case 0x00D1: ch = 0xA5; break;
554 case 0x00D2: ch = 0xE3; break;
555 case 0x00D3: ch = 0xE0; break;
556 case 0x00D4: ch = 0xE2; break;
557 case 0x00D5: ch = 0xE5; break;
558 case 0x00D6: ch = 0x99; break;
559 case 0x00D7: ch = 0x9E; break;
560 case 0x00D8: ch = 0x9D; break;
561 case 0x00D9: ch = 0xEB; break;
562 case 0x00DA: ch = 0xE9; break;
563 case 0x00DB: ch = 0xEA; break;
564 case 0x00DC: ch = 0x9A; break;
565 case 0x00DD: ch = 0xED; break;
566 case 0x00DE: ch = 0xE8; break;
567 case 0x00DF: ch = 0xE1; break;
568 case 0x00E0: ch = 0x85; break;
569 case 0x00E1: ch = 0xA0; break;
570 case 0x00E2: ch = 0x83; break;
571 case 0x00E3: ch = 0xC6; break;
572 case 0x00E4: ch = 0x84; break;
573 case 0x00E5: ch = 0x86; break;
574 case 0x00E6: ch = 0x91; break;
575 case 0x00E7: ch = 0x87; break;
576 case 0x00E8: ch = 0x8A; break;
577 case 0x00E9: ch = 0x82; break;
578 case 0x00EA: ch = 0x88; break;
579 case 0x00EB: ch = 0x89; break;
580 case 0x00EC: ch = 0x8D; break;
581 case 0x00ED: ch = 0xA1; break;
582 case 0x00EE: ch = 0x8C; break;
583 case 0x00EF: ch = 0x8B; break;
584 case 0x00F0: ch = 0xD0; break;
585 case 0x00F1: ch = 0xA4; break;
586 case 0x00F2: ch = 0x95; break;
587 case 0x00F3: ch = 0xA2; break;
588 case 0x00F4: ch = 0x93; break;
589 case 0x00F5: ch = 0xE4; break;
590 case 0x00F6: ch = 0x94; break;
591 case 0x00F7: ch = 0xF6; break;
592 case 0x00F8: ch = 0x9B; break;
593 case 0x00F9: ch = 0x97; break;
594 case 0x00FA: ch = 0xA3; break;
595 case 0x00FB: ch = 0x96; break;
596 case 0x00FC: ch = 0x81; break;
597 case 0x00FD: ch = 0xEC; break;
598 case 0x00FE: ch = 0xE7; break;
599 case 0x00FF: ch = 0x98; break;
600 case 0x0192: ch = 0x9F; break;
601 case 0x2017: ch = 0xF2; break;
602 case 0x2022: ch = 0x07; break;
603 case 0x203C: ch = 0x13; break;
604 case 0x203E: ch = 0xEE; break;
605 case 0x20AC: ch = 0xD5; break;
606 case 0x2190: ch = 0x1B; break;
607 case 0x2191: ch = 0x18; break;
608 case 0x2192: ch = 0x1A; break;
609 case 0x2193: ch = 0x19; break;
610 case 0x2194: ch = 0x1D; break;
611 case 0x2195: ch = 0x12; break;
612 case 0x21A8: ch = 0x17; break;
613 case 0x221F: ch = 0x1C; break;
614 case 0x2302: ch = 0x7F; break;
615 case 0x2500: ch = 0xC4; break;
616 case 0x2502: ch = 0xB3; break;
617 case 0x250C: ch = 0xDA; break;
618 case 0x2510: ch = 0xBF; break;
619 case 0x2514: ch = 0xC0; break;
620 case 0x2518: ch = 0xD9; break;
621 case 0x251C: ch = 0xC3; break;
622 case 0x2524: ch = 0xB4; break;
623 case 0x252C: ch = 0xC2; break;
624 case 0x2534: ch = 0xC1; break;
625 case 0x253C: ch = 0xC5; break;
626 case 0x2550: ch = 0xCD; break;
627 case 0x2551: ch = 0xBA; break;
628 case 0x2554: ch = 0xC9; break;
629 case 0x2557: ch = 0xBB; break;
630 case 0x255A: ch = 0xC8; break;
631 case 0x255D: ch = 0xBC; break;
632 case 0x2560: ch = 0xCC; break;
633 case 0x2563: ch = 0xB9; break;
634 case 0x2566: ch = 0xCB; break;
635 case 0x2569: ch = 0xCA; break;
636 case 0x256C: ch = 0xCE; break;
637 case 0x2580: ch = 0xDF; break;
638 case 0x2584: ch = 0xDC; break;
639 case 0x2588: ch = 0xDB; break;
640 case 0x2591: ch = 0xB0; break;
641 case 0x2592: ch = 0xB1; break;
642 case 0x2593: ch = 0xB2; break;
643 case 0x25A0: ch = 0xFE; break;
644 case 0x25AC: ch = 0x16; break;
645 case 0x25B2: ch = 0x1E; break;
646 case 0x25BA: ch = 0x10; break;
647 case 0x25BC: ch = 0x1F; break;
648 case 0x25C4: ch = 0x11; break;
649 case 0x25CB: ch = 0x09; break;
650 case 0x25D8: ch = 0x08; break;
651 case 0x25D9: ch = 0x0A; break;
652 case 0x263A: ch = 0x01; break;
653 case 0x263B: ch = 0x02; break;
654 case 0x263C: ch = 0x0F; break;
655 case 0x2640: ch = 0x0C; break;
656 case 0x2642: ch = 0x0B; break;
657 case 0x2660: ch = 0x06; break;
658 case 0x2663: ch = 0x05; break;
659 case 0x2665: ch = 0x03; break;
660 case 0x2666: ch = 0x04; break;
661 case 0x266A: ch = 0x0D; break;
662 case 0x266C: ch = 0x0E; break;
663 case 0xFFE8: ch = 0xB3; break;
664 case 0xFFE9: ch = 0x1B; break;
665 case 0xFFEA: ch = 0x18; break;
666 case 0xFFEB: ch = 0x1A; break;
667 case 0xFFEC: ch = 0x19; break;
668 case 0xFFED: ch = 0xFE; break;
669 case 0xFFEE: ch = 0x09; break;
670 default:
672 if(ch >= 0xFF01 && ch <= 0xFF5E)
673 ch -= 0xFEE0;
674 else
675 ch = 0x3F;
677 break;
679 bytes[byteIndex++] = (byte)ch;
680 --charCount;
685 }; // class CP858
687 [Serializable]
688 public class ENCibm00858 : CP858
690 public ENCibm00858() : base() {}
692 }; // class ENCibm00858
694 }; // namespace I18N.Rare