|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32std.h> |
|
20 #include <convdata.h> |
|
21 #include <convgeneratedcpp.h> |
|
22 |
|
23 #define ARRAY_LENGTH(aArray) (sizeof(aArray)/sizeof((aArray)[0])) |
|
24 |
|
25 #pragma warning (disable: 4049) // compiler limit : terminating line number emission |
|
26 |
|
27 _LIT8(KLit8ReplacementForUnconvertibleUnicodeCharacters, "\x1a"); |
|
28 |
|
29 GLDEF_C const TDesC8& ReplacementForUnconvertibleUnicodeCharacters_internal() |
|
30 { |
|
31 return KLit8ReplacementForUnconvertibleUnicodeCharacters; |
|
32 } |
|
33 |
|
34 LOCAL_D const TUint16 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_1[]= |
|
35 { |
|
36 0x00a0, |
|
37 0x0104, |
|
38 0x0112, |
|
39 0x0122, |
|
40 0x012a, |
|
41 0x0128, |
|
42 0x0136, |
|
43 0x00a7, |
|
44 0x013b, |
|
45 0x0110, |
|
46 0x0160, |
|
47 0x0166, |
|
48 0x017d, |
|
49 0x00ad, |
|
50 0x016a, |
|
51 0x014a, |
|
52 0x00b0, |
|
53 0x0105, |
|
54 0x0113, |
|
55 0x0123, |
|
56 0x012b, |
|
57 0x0129, |
|
58 0x0137, |
|
59 0x00b7, |
|
60 0x013c, |
|
61 0x0111, |
|
62 0x0161, |
|
63 0x0167, |
|
64 0x017e, |
|
65 0x2015, |
|
66 0x016b, |
|
67 0x014b, |
|
68 0x0100, |
|
69 0x00c1, |
|
70 0x00c2, |
|
71 0x00c3, |
|
72 0x00c4, |
|
73 0x00c5, |
|
74 0x00c6, |
|
75 0x012e, |
|
76 0x010c, |
|
77 0x00c9, |
|
78 0x0118, |
|
79 0x00cb, |
|
80 0x0116, |
|
81 0x00cd, |
|
82 0x00ce, |
|
83 0x00cf, |
|
84 0x00d0, |
|
85 0x0145, |
|
86 0x014c, |
|
87 0x00d3, |
|
88 0x00d4, |
|
89 0x00d5, |
|
90 0x00d6, |
|
91 0x0168, |
|
92 0x00d8, |
|
93 0x0172, |
|
94 0x00da, |
|
95 0x00db, |
|
96 0x00dc, |
|
97 0x00dd, |
|
98 0x00de, |
|
99 0x00df, |
|
100 0x0101, |
|
101 0x00e1, |
|
102 0x00e2, |
|
103 0x00e3, |
|
104 0x00e4, |
|
105 0x00e5, |
|
106 0x00e6, |
|
107 0x012f, |
|
108 0x010d, |
|
109 0x00e9, |
|
110 0x0119, |
|
111 0x00eb, |
|
112 0x0117, |
|
113 0x00ed, |
|
114 0x00ee, |
|
115 0x00ef, |
|
116 0x00f0, |
|
117 0x0146, |
|
118 0x014d, |
|
119 0x00f3, |
|
120 0x00f4, |
|
121 0x00f5, |
|
122 0x00f6, |
|
123 0x0169, |
|
124 0x00f8, |
|
125 0x0173, |
|
126 0x00fa, |
|
127 0x00fb, |
|
128 0x00fc, |
|
129 0x00fd, |
|
130 0x00fe, |
|
131 0x0138 |
|
132 }; |
|
133 |
|
134 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable16OfIndexedTables16::SKeyedEntry keyedTables16OfIndexedTables16_keyedEntries_foreignToUnicode_1[]= |
|
135 { |
|
136 { |
|
137 0xa0, |
|
138 0xff, |
|
139 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_1 |
|
140 } |
|
141 }; |
|
142 |
|
143 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry keyedTable1616_unicodeToForeign_1[]= |
|
144 { |
|
145 { |
|
146 0x00a0, |
|
147 0xa0 |
|
148 }, |
|
149 { |
|
150 0x00a7, |
|
151 0xa7 |
|
152 }, |
|
153 { |
|
154 0x00ad, |
|
155 0xad |
|
156 }, |
|
157 { |
|
158 0x00b0, |
|
159 0xb0 |
|
160 }, |
|
161 { |
|
162 0x00b7, |
|
163 0xb7 |
|
164 }, |
|
165 { |
|
166 0x00c1, |
|
167 0xc1 |
|
168 }, |
|
169 { |
|
170 0x00c2, |
|
171 0xc2 |
|
172 }, |
|
173 { |
|
174 0x00c3, |
|
175 0xc3 |
|
176 }, |
|
177 { |
|
178 0x00c4, |
|
179 0xc4 |
|
180 }, |
|
181 { |
|
182 0x00c5, |
|
183 0xc5 |
|
184 }, |
|
185 { |
|
186 0x00c6, |
|
187 0xc6 |
|
188 }, |
|
189 { |
|
190 0x00c9, |
|
191 0xc9 |
|
192 }, |
|
193 { |
|
194 0x00cb, |
|
195 0xcb |
|
196 }, |
|
197 { |
|
198 0x00cd, |
|
199 0xcd |
|
200 }, |
|
201 { |
|
202 0x00ce, |
|
203 0xce |
|
204 }, |
|
205 { |
|
206 0x00cf, |
|
207 0xcf |
|
208 }, |
|
209 { |
|
210 0x00d0, |
|
211 0xd0 |
|
212 }, |
|
213 { |
|
214 0x00d3, |
|
215 0xd3 |
|
216 }, |
|
217 { |
|
218 0x00d4, |
|
219 0xd4 |
|
220 }, |
|
221 { |
|
222 0x00d5, |
|
223 0xd5 |
|
224 }, |
|
225 { |
|
226 0x00d6, |
|
227 0xd6 |
|
228 }, |
|
229 { |
|
230 0x00d8, |
|
231 0xd8 |
|
232 }, |
|
233 { |
|
234 0x00da, |
|
235 0xda |
|
236 }, |
|
237 { |
|
238 0x00db, |
|
239 0xdb |
|
240 }, |
|
241 { |
|
242 0x00dc, |
|
243 0xdc |
|
244 }, |
|
245 { |
|
246 0x00dd, |
|
247 0xdd |
|
248 }, |
|
249 { |
|
250 0x00de, |
|
251 0xde |
|
252 }, |
|
253 { |
|
254 0x00df, |
|
255 0xdf |
|
256 }, |
|
257 { |
|
258 0x00e1, |
|
259 0xe1 |
|
260 }, |
|
261 { |
|
262 0x00e2, |
|
263 0xe2 |
|
264 }, |
|
265 { |
|
266 0x00e3, |
|
267 0xe3 |
|
268 }, |
|
269 { |
|
270 0x00e4, |
|
271 0xe4 |
|
272 }, |
|
273 { |
|
274 0x00e5, |
|
275 0xe5 |
|
276 }, |
|
277 { |
|
278 0x00e6, |
|
279 0xe6 |
|
280 }, |
|
281 { |
|
282 0x00e9, |
|
283 0xe9 |
|
284 }, |
|
285 { |
|
286 0x00eb, |
|
287 0xeb |
|
288 }, |
|
289 { |
|
290 0x00ed, |
|
291 0xed |
|
292 }, |
|
293 { |
|
294 0x00ee, |
|
295 0xee |
|
296 }, |
|
297 { |
|
298 0x00ef, |
|
299 0xef |
|
300 }, |
|
301 { |
|
302 0x00f0, |
|
303 0xf0 |
|
304 }, |
|
305 { |
|
306 0x00f3, |
|
307 0xf3 |
|
308 }, |
|
309 { |
|
310 0x00f4, |
|
311 0xf4 |
|
312 }, |
|
313 { |
|
314 0x00f5, |
|
315 0xf5 |
|
316 }, |
|
317 { |
|
318 0x00f6, |
|
319 0xf6 |
|
320 }, |
|
321 { |
|
322 0x00f8, |
|
323 0xf8 |
|
324 }, |
|
325 { |
|
326 0x00fa, |
|
327 0xfa |
|
328 }, |
|
329 { |
|
330 0x00fb, |
|
331 0xfb |
|
332 }, |
|
333 { |
|
334 0x00fc, |
|
335 0xfc |
|
336 }, |
|
337 { |
|
338 0x00fd, |
|
339 0xfd |
|
340 }, |
|
341 { |
|
342 0x00fe, |
|
343 0xfe |
|
344 }, |
|
345 { |
|
346 0x0100, |
|
347 0xc0 |
|
348 }, |
|
349 { |
|
350 0x0101, |
|
351 0xe0 |
|
352 }, |
|
353 { |
|
354 0x0104, |
|
355 0xa1 |
|
356 }, |
|
357 { |
|
358 0x0105, |
|
359 0xb1 |
|
360 }, |
|
361 { |
|
362 0x010c, |
|
363 0xc8 |
|
364 }, |
|
365 { |
|
366 0x010d, |
|
367 0xe8 |
|
368 }, |
|
369 { |
|
370 0x0110, |
|
371 0xa9 |
|
372 }, |
|
373 { |
|
374 0x0111, |
|
375 0xb9 |
|
376 }, |
|
377 { |
|
378 0x0112, |
|
379 0xa2 |
|
380 }, |
|
381 { |
|
382 0x0113, |
|
383 0xb2 |
|
384 }, |
|
385 { |
|
386 0x0116, |
|
387 0xcc |
|
388 }, |
|
389 { |
|
390 0x0117, |
|
391 0xec |
|
392 }, |
|
393 { |
|
394 0x0118, |
|
395 0xca |
|
396 }, |
|
397 { |
|
398 0x0119, |
|
399 0xea |
|
400 }, |
|
401 { |
|
402 0x0122, |
|
403 0xa3 |
|
404 }, |
|
405 { |
|
406 0x0123, |
|
407 0xb3 |
|
408 }, |
|
409 { |
|
410 0x0128, |
|
411 0xa5 |
|
412 }, |
|
413 { |
|
414 0x0129, |
|
415 0xb5 |
|
416 }, |
|
417 { |
|
418 0x012a, |
|
419 0xa4 |
|
420 }, |
|
421 { |
|
422 0x012b, |
|
423 0xb4 |
|
424 }, |
|
425 { |
|
426 0x012e, |
|
427 0xc7 |
|
428 }, |
|
429 { |
|
430 0x012f, |
|
431 0xe7 |
|
432 }, |
|
433 { |
|
434 0x0136, |
|
435 0xa6 |
|
436 }, |
|
437 { |
|
438 0x0137, |
|
439 0xb6 |
|
440 }, |
|
441 { |
|
442 0x0138, |
|
443 0xff |
|
444 }, |
|
445 { |
|
446 0x013b, |
|
447 0xa8 |
|
448 }, |
|
449 { |
|
450 0x013c, |
|
451 0xb8 |
|
452 }, |
|
453 { |
|
454 0x0145, |
|
455 0xd1 |
|
456 }, |
|
457 { |
|
458 0x0146, |
|
459 0xf1 |
|
460 }, |
|
461 { |
|
462 0x014a, |
|
463 0xaf |
|
464 }, |
|
465 { |
|
466 0x014b, |
|
467 0xbf |
|
468 }, |
|
469 { |
|
470 0x014c, |
|
471 0xd2 |
|
472 }, |
|
473 { |
|
474 0x014d, |
|
475 0xf2 |
|
476 }, |
|
477 { |
|
478 0x0160, |
|
479 0xaa |
|
480 }, |
|
481 { |
|
482 0x0161, |
|
483 0xba |
|
484 }, |
|
485 { |
|
486 0x0166, |
|
487 0xab |
|
488 }, |
|
489 { |
|
490 0x0167, |
|
491 0xbb |
|
492 }, |
|
493 { |
|
494 0x0168, |
|
495 0xd7 |
|
496 }, |
|
497 { |
|
498 0x0169, |
|
499 0xf7 |
|
500 }, |
|
501 { |
|
502 0x016a, |
|
503 0xae |
|
504 }, |
|
505 { |
|
506 0x016b, |
|
507 0xbe |
|
508 }, |
|
509 { |
|
510 0x0172, |
|
511 0xd9 |
|
512 }, |
|
513 { |
|
514 0x0173, |
|
515 0xf9 |
|
516 }, |
|
517 { |
|
518 0x017d, |
|
519 0xac |
|
520 }, |
|
521 { |
|
522 0x017e, |
|
523 0xbc |
|
524 }, |
|
525 { |
|
526 0x2015, |
|
527 0xbd |
|
528 } |
|
529 }; |
|
530 |
|
531 LOCAL_D const SCnvConversionData::SVariableByteData::SRange foreignVariableByteDataRanges[]= |
|
532 { |
|
533 { |
|
534 0x00, |
|
535 0xff, |
|
536 0, |
|
537 0 |
|
538 } |
|
539 }; |
|
540 |
|
541 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange foreignToUnicodeDataRanges[]= |
|
542 { |
|
543 { |
|
544 0x00, |
|
545 0x9f, |
|
546 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
547 0, |
|
548 0, |
|
549 { |
|
550 0 |
|
551 } |
|
552 }, |
|
553 { |
|
554 0xa0, |
|
555 0xff, |
|
556 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable16OfIndexedTables16, |
|
557 0, |
|
558 0, |
|
559 { |
|
560 UData_SKeyedTable16OfIndexedTables16(keyedTables16OfIndexedTables16_keyedEntries_foreignToUnicode_1) |
|
561 } |
|
562 } |
|
563 }; |
|
564 |
|
565 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]= |
|
566 { |
|
567 { |
|
568 0x0000, |
|
569 0x009f, |
|
570 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
571 1, |
|
572 0, |
|
573 { |
|
574 0 |
|
575 } |
|
576 }, |
|
577 { |
|
578 0x00a0, |
|
579 0x2015, |
|
580 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616, |
|
581 1, |
|
582 0, |
|
583 { |
|
584 UData_SKeyedTable1616(keyedTable1616_unicodeToForeign_1) |
|
585 } |
|
586 } |
|
587 }; |
|
588 |
|
589 GLDEF_D const SCnvConversionData conversionData= |
|
590 { |
|
591 SCnvConversionData::EFixedBigEndian, |
|
592 { |
|
593 ARRAY_LENGTH(foreignVariableByteDataRanges), |
|
594 foreignVariableByteDataRanges |
|
595 }, |
|
596 { |
|
597 ARRAY_LENGTH(foreignToUnicodeDataRanges), |
|
598 foreignToUnicodeDataRanges |
|
599 }, |
|
600 { |
|
601 ARRAY_LENGTH(unicodeToForeignDataRanges), |
|
602 unicodeToForeignDataRanges |
|
603 }, |
|
604 NULL, |
|
605 NULL |
|
606 }; |
|
607 |