12 #if defined (NTV2_NUB_CLIENT_SUPPORT)
15 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
16 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
17 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
18 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
19 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
20 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
21 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
22 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
36 int bufleft = dest_buf_size -1;
40 memset(dest, 0, dest_buf_size);
42 while (bufleft && *src)
51 for(
int j = 0; j < u8_len; j++)
67 unsigned char first = *src++;
68 unsigned char second = *src++;
74 if (first == 0xC6 && second == 0x92)
84 case 0xa2: *cp437equiv = 0x9B;
break;
85 case 0xA3: *cp437equiv = 0x9C;
break;
86 case 0xA5: *cp437equiv = 0x9D;
break;
88 case 0xAA: *cp437equiv = 0xA6;
break;
89 case 0xBA: *cp437equiv = 0xA7;
break;
90 case 0xBF: *cp437equiv = 0xA8;
break;
92 case 0xAC: *cp437equiv = 0xAA;
break;
93 case 0xBD: *cp437equiv = 0xAB;
break;
94 case 0xBC: *cp437equiv = 0xAC;
break;
95 case 0xA1: *cp437equiv = 0xAD;
break;
96 case 0xAB: *cp437equiv = 0xAE;
break;
97 case 0xBB: *cp437equiv = 0xAF;
break;
99 case 0xB5: *cp437equiv = 0xE6;
break;
101 case 0xB1: *cp437equiv = 0xF1;
break;
103 case 0xB0: *cp437equiv = 0xF8;
break;
105 case 0xB7: *cp437equiv = 0xFA;
break;
107 case 0xB2: *cp437equiv = 0xFD;
break;
114 case 0x87: *cp437equiv = 0x80;
break;
115 case 0xBC: *cp437equiv = 0x81;
break;
116 case 0xA9: *cp437equiv = 0x82;
break;
117 case 0xA2: *cp437equiv = 0x83;
break;
118 case 0xA4: *cp437equiv = 0x84;
break;
119 case 0xA0: *cp437equiv = 0x85;
break;
120 case 0xA5: *cp437equiv = 0x86;
break;
121 case 0xA7: *cp437equiv = 0x87;
break;
122 case 0xAA: *cp437equiv = 0x88;
break;
123 case 0xAB: *cp437equiv = 0x89;
break;
124 case 0xA8: *cp437equiv = 0x8A;
break;
125 case 0xAF: *cp437equiv = 0x8B;
break;
126 case 0xAE: *cp437equiv = 0x8C;
break;
127 case 0xAC: *cp437equiv = 0x8D;
break;
128 case 0x84: *cp437equiv = 0x8E;
break;
129 case 0x85: *cp437equiv = 0x8F;
break;
130 case 0x89: *cp437equiv = 0x90;
break;
131 case 0xA6: *cp437equiv = 0x91;
break;
132 case 0x86: *cp437equiv = 0x92;
break;
133 case 0xB4: *cp437equiv = 0x93;
break;
134 case 0xB6: *cp437equiv = 0x94;
break;
135 case 0xB2: *cp437equiv = 0x95;
break;
136 case 0xBB: *cp437equiv = 0x96;
break;
137 case 0xB9: *cp437equiv = 0x97;
break;
138 case 0xBF: *cp437equiv = 0x98;
break;
139 case 0x96: *cp437equiv = 0x99;
break;
140 case 0x9C: *cp437equiv = 0x9A;
break;
142 case 0xA1: *cp437equiv = 0xA0;
break;
143 case 0xAD: *cp437equiv = 0xA1;
break;
144 case 0xB3: *cp437equiv = 0xA2;
break;
145 case 0xBA: *cp437equiv = 0xA3;
break;
146 case 0xB1: *cp437equiv = 0xA4;
break;
147 case 0x91: *cp437equiv = 0xA5;
break;
149 case 0x9F: *cp437equiv = 0xE1;
break;
151 case 0xB7: *cp437equiv = 0xF6;
break;
158 case 0xB1: *cp437equiv = 0xE0;
break;
160 case 0x93: *cp437equiv = 0xE2;
break;
162 case 0xA3: *cp437equiv = 0xE4;
break;
164 case 0xA6: *cp437equiv = 0xE8;
break;
165 case 0x98: *cp437equiv = 0xE9;
break;
166 case 0xA9: *cp437equiv = 0xEA;
break;
167 case 0xB4: *cp437equiv = 0xEB;
break;
169 case 0xB5: *cp437equiv = 0xEE;
break;
176 case 0x80: *cp437equiv = 0xE3;
break;
178 case 0x83: *cp437equiv = 0xE5;
break;
180 case 0x84: *cp437equiv = 0xE7;
break;
182 case 0x86: *cp437equiv = 0xED;
break;
189 else if (u8_len == 3 && first == 0xE2)
191 unsigned char third = *src;
207 case 0x90: *cp437equiv = 0xA9;
break;
208 case 0xA0: *cp437equiv = 0xF4;
break;
209 case 0xA1: *cp437equiv = 0xF5;
break;
216 case 0x9E: *cp437equiv = 0xEC;
break;
218 case 0xA9: *cp437equiv = 0xEF;
break;
220 case 0x99: *cp437equiv = 0xF9;
break;
222 case 0x9A: *cp437equiv = 0xFB;
break;
229 case 0xA1: *cp437equiv = 0xF0;
break;
231 case 0xA5: *cp437equiv = 0xF2;
break;
232 case 0xA4: *cp437equiv = 0xF3;
break;
234 case 0x88: *cp437equiv = 0xF7;
break;
243 case 0x82: *cp437equiv = 0xB3;
break;
244 case 0xA4: *cp437equiv = 0xB4;
break;
246 case 0x90: *cp437equiv = 0xBF;
break;
247 case 0x94: *cp437equiv = 0xC0;
break;
248 case 0xB4: *cp437equiv = 0xC1;
break;
249 case 0xAC: *cp437equiv = 0xC2;
break;
250 case 0x9C: *cp437equiv = 0xC3;
break;
251 case 0x80: *cp437equiv = 0xC4;
break;
252 case 0xBC: *cp437equiv = 0xC5;
break;
254 case 0x98: *cp437equiv = 0xD9;
break;
255 case 0x8C: *cp437equiv = 0xDA;
break;
262 case 0xA1: *cp437equiv = 0xB5;
break;
263 case 0xA2: *cp437equiv = 0xB6;
break;
264 case 0x96: *cp437equiv = 0xB7;
break;
265 case 0x95: *cp437equiv = 0xB8;
break;
266 case 0xA3: *cp437equiv = 0xB9;
break;
267 case 0x91: *cp437equiv = 0xBA;
break;
268 case 0x97: *cp437equiv = 0xBB;
break;
269 case 0x9D: *cp437equiv = 0xBC;
break;
270 case 0x9C: *cp437equiv = 0xBD;
break;
271 case 0x9B: *cp437equiv = 0xBE;
break;
273 case 0x9E: *cp437equiv = 0xC6;
break;
274 case 0x9F: *cp437equiv = 0xC7;
break;
275 case 0x9A: *cp437equiv = 0xC8;
break;
276 case 0x94: *cp437equiv = 0xC9;
break;
277 case 0xA9: *cp437equiv = 0xCA;
break;
278 case 0xA6: *cp437equiv = 0xCB;
break;
279 case 0xA0: *cp437equiv = 0xCC;
break;
280 case 0x90: *cp437equiv = 0xCD;
break;
281 case 0xAC: *cp437equiv = 0xCE;
break;
282 case 0xA7: *cp437equiv = 0xCF;
break;
283 case 0xA8: *cp437equiv = 0xD0;
break;
284 case 0xA4: *cp437equiv = 0xD1;
break;
285 case 0xA5: *cp437equiv = 0xD2;
break;
286 case 0x99: *cp437equiv = 0xD3;
break;
287 case 0x98: *cp437equiv = 0xD4;
break;
288 case 0x92: *cp437equiv = 0xD5;
break;
289 case 0x93: *cp437equiv = 0xD6;
break;
290 case 0xAB: *cp437equiv = 0xD7;
break;
291 case 0xAA: *cp437equiv = 0xD8;
break;
299 case 0x91: *cp437equiv = 0xB0;
break;
300 case 0x92: *cp437equiv = 0xB1;
break;
301 case 0x93: *cp437equiv = 0xB2;
break;
303 case 0x88: *cp437equiv = 0xDB;
break;
304 case 0x84: *cp437equiv = 0xDC;
break;
305 case 0x8C: *cp437equiv = 0xDD;
break;
306 case 0x90: *cp437equiv = 0xDE;
break;
307 case 0x80: *cp437equiv = 0xDF;
break;
309 case 0xA0: *cp437equiv = 0xFE;
break;
315 return (*cp437equiv != 0)?
true :
false;
323 int bufleft = dest_buf_size -1;
331 if (bufleft < u8_len)
334 unsigned char cp437equiv;
338 *dest++ = cp437equiv;
344 for(
int j = 0; j < u8_len; j++)
356 #endif // defined (NTV2_NUB_CLIENT_SUPPORT)