|
1 /* |
|
2 * Copyright (c) 1251 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 |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <convdata.h> |
|
23 #include <convgeneratedcpp.h> |
|
24 |
|
25 #define ARRAY_LENGTH(aArray) (sizeof(aArray)/sizeof((aArray)[0])) |
|
26 |
|
27 #pragma warning (disable: 4049) // compiler limit : terminating line number emission |
|
28 |
|
29 _LIT8(KLit8ReplacementForUnconvertibleUnicodeCharacters, "\x1a"); |
|
30 |
|
31 GLDEF_C const TDesC8& ReplacementForUnconvertibleUnicodeCharacters_internal() |
|
32 { |
|
33 return KLit8ReplacementForUnconvertibleUnicodeCharacters; |
|
34 } |
|
35 |
|
36 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry indexedTable16_foreignToUnicode_1[]= |
|
37 { |
|
38 { |
|
39 0x0402 |
|
40 }, |
|
41 { |
|
42 0x0403 |
|
43 }, |
|
44 { |
|
45 0x201a |
|
46 }, |
|
47 { |
|
48 0x0453 |
|
49 }, |
|
50 { |
|
51 0x201e |
|
52 }, |
|
53 { |
|
54 0x2026 |
|
55 }, |
|
56 { |
|
57 0x2020 |
|
58 }, |
|
59 { |
|
60 0x2021 |
|
61 }, |
|
62 { |
|
63 0x20ac |
|
64 }, |
|
65 { |
|
66 0x2030 |
|
67 }, |
|
68 { |
|
69 0x0409 |
|
70 }, |
|
71 { |
|
72 0x2039 |
|
73 }, |
|
74 { |
|
75 0x040a |
|
76 }, |
|
77 { |
|
78 0x040c |
|
79 }, |
|
80 { |
|
81 0x040b |
|
82 }, |
|
83 { |
|
84 0x040f |
|
85 }, |
|
86 { |
|
87 0x0452 |
|
88 }, |
|
89 { |
|
90 0x2018 |
|
91 }, |
|
92 { |
|
93 0x2019 |
|
94 }, |
|
95 { |
|
96 0x201c |
|
97 }, |
|
98 { |
|
99 0x201d |
|
100 }, |
|
101 { |
|
102 0x2022 |
|
103 }, |
|
104 { |
|
105 0x2013 |
|
106 }, |
|
107 { |
|
108 0x2014 |
|
109 }, |
|
110 { |
|
111 0x0098 |
|
112 }, |
|
113 { |
|
114 0x2122 |
|
115 }, |
|
116 { |
|
117 0x0459 |
|
118 }, |
|
119 { |
|
120 0x203a |
|
121 }, |
|
122 { |
|
123 0x045a |
|
124 }, |
|
125 { |
|
126 0x045c |
|
127 }, |
|
128 { |
|
129 0x045b |
|
130 }, |
|
131 { |
|
132 0x045f |
|
133 }, |
|
134 { |
|
135 0x00a0 |
|
136 }, |
|
137 { |
|
138 0x040e |
|
139 }, |
|
140 { |
|
141 0x045e |
|
142 }, |
|
143 { |
|
144 0x0408 |
|
145 }, |
|
146 { |
|
147 0x00a4 |
|
148 }, |
|
149 { |
|
150 0x0490 |
|
151 }, |
|
152 { |
|
153 0x00a6 |
|
154 }, |
|
155 { |
|
156 0x00a7 |
|
157 }, |
|
158 { |
|
159 0x0401 |
|
160 }, |
|
161 { |
|
162 0x00a9 |
|
163 }, |
|
164 { |
|
165 0x0404 |
|
166 }, |
|
167 { |
|
168 0x00ab |
|
169 }, |
|
170 { |
|
171 0x00ac |
|
172 }, |
|
173 { |
|
174 0x00ad |
|
175 }, |
|
176 { |
|
177 0x00ae |
|
178 }, |
|
179 { |
|
180 0x0407 |
|
181 }, |
|
182 { |
|
183 0x00b0 |
|
184 }, |
|
185 { |
|
186 0x00b1 |
|
187 }, |
|
188 { |
|
189 0x0406 |
|
190 }, |
|
191 { |
|
192 0x0456 |
|
193 }, |
|
194 { |
|
195 0x0491 |
|
196 }, |
|
197 { |
|
198 0x00b5 |
|
199 }, |
|
200 { |
|
201 0x00b6 |
|
202 }, |
|
203 { |
|
204 0x00b7 |
|
205 }, |
|
206 { |
|
207 0x0451 |
|
208 }, |
|
209 { |
|
210 0x2116 |
|
211 }, |
|
212 { |
|
213 0x0454 |
|
214 }, |
|
215 { |
|
216 0x00bb |
|
217 }, |
|
218 { |
|
219 0x0458 |
|
220 }, |
|
221 { |
|
222 0x0405 |
|
223 }, |
|
224 { |
|
225 0x0455 |
|
226 }, |
|
227 { |
|
228 0x0457 |
|
229 }, |
|
230 { |
|
231 0x0410 |
|
232 }, |
|
233 { |
|
234 0x0411 |
|
235 }, |
|
236 { |
|
237 0x0412 |
|
238 }, |
|
239 { |
|
240 0x0413 |
|
241 }, |
|
242 { |
|
243 0x0414 |
|
244 }, |
|
245 { |
|
246 0x0415 |
|
247 }, |
|
248 { |
|
249 0x0416 |
|
250 }, |
|
251 { |
|
252 0x0417 |
|
253 }, |
|
254 { |
|
255 0x0418 |
|
256 }, |
|
257 { |
|
258 0x0419 |
|
259 }, |
|
260 { |
|
261 0x041a |
|
262 }, |
|
263 { |
|
264 0x041b |
|
265 }, |
|
266 { |
|
267 0x041c |
|
268 }, |
|
269 { |
|
270 0x041d |
|
271 }, |
|
272 { |
|
273 0x041e |
|
274 }, |
|
275 { |
|
276 0x041f |
|
277 }, |
|
278 { |
|
279 0x0420 |
|
280 }, |
|
281 { |
|
282 0x0421 |
|
283 }, |
|
284 { |
|
285 0x0422 |
|
286 }, |
|
287 { |
|
288 0x0423 |
|
289 }, |
|
290 { |
|
291 0x0424 |
|
292 }, |
|
293 { |
|
294 0x0425 |
|
295 }, |
|
296 { |
|
297 0x0426 |
|
298 }, |
|
299 { |
|
300 0x0427 |
|
301 }, |
|
302 { |
|
303 0x0428 |
|
304 }, |
|
305 { |
|
306 0x0429 |
|
307 }, |
|
308 { |
|
309 0x042a |
|
310 }, |
|
311 { |
|
312 0x042b |
|
313 }, |
|
314 { |
|
315 0x042c |
|
316 }, |
|
317 { |
|
318 0x042d |
|
319 }, |
|
320 { |
|
321 0x042e |
|
322 }, |
|
323 { |
|
324 0x042f |
|
325 }, |
|
326 { |
|
327 0x0430 |
|
328 }, |
|
329 { |
|
330 0x0431 |
|
331 }, |
|
332 { |
|
333 0x0432 |
|
334 }, |
|
335 { |
|
336 0x0433 |
|
337 }, |
|
338 { |
|
339 0x0434 |
|
340 }, |
|
341 { |
|
342 0x0435 |
|
343 }, |
|
344 { |
|
345 0x0436 |
|
346 }, |
|
347 { |
|
348 0x0437 |
|
349 }, |
|
350 { |
|
351 0x0438 |
|
352 }, |
|
353 { |
|
354 0x0439 |
|
355 }, |
|
356 { |
|
357 0x043a |
|
358 }, |
|
359 { |
|
360 0x043b |
|
361 }, |
|
362 { |
|
363 0x043c |
|
364 }, |
|
365 { |
|
366 0x043d |
|
367 }, |
|
368 { |
|
369 0x043e |
|
370 }, |
|
371 { |
|
372 0x043f |
|
373 }, |
|
374 { |
|
375 0x0440 |
|
376 }, |
|
377 { |
|
378 0x0441 |
|
379 }, |
|
380 { |
|
381 0x0442 |
|
382 }, |
|
383 { |
|
384 0x0443 |
|
385 }, |
|
386 { |
|
387 0x0444 |
|
388 }, |
|
389 { |
|
390 0x0445 |
|
391 }, |
|
392 { |
|
393 0x0446 |
|
394 }, |
|
395 { |
|
396 0x0447 |
|
397 }, |
|
398 { |
|
399 0x0448 |
|
400 }, |
|
401 { |
|
402 0x0449 |
|
403 }, |
|
404 { |
|
405 0x044a |
|
406 }, |
|
407 { |
|
408 0x044b |
|
409 }, |
|
410 { |
|
411 0x044c |
|
412 }, |
|
413 { |
|
414 0x044d |
|
415 }, |
|
416 { |
|
417 0x044e |
|
418 }, |
|
419 { |
|
420 0x044f |
|
421 } |
|
422 }; |
|
423 |
|
424 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry indexedTable16_unicodeToForeign_1[]= |
|
425 { |
|
426 { |
|
427 0xa8 |
|
428 }, |
|
429 { |
|
430 0x80 |
|
431 }, |
|
432 { |
|
433 0x81 |
|
434 }, |
|
435 { |
|
436 0xaa |
|
437 }, |
|
438 { |
|
439 0xbd |
|
440 }, |
|
441 { |
|
442 0xb2 |
|
443 }, |
|
444 { |
|
445 0xaf |
|
446 }, |
|
447 { |
|
448 0xa3 |
|
449 }, |
|
450 { |
|
451 0x8a |
|
452 }, |
|
453 { |
|
454 0x8c |
|
455 }, |
|
456 { |
|
457 0x8e |
|
458 }, |
|
459 { |
|
460 0x8d |
|
461 } |
|
462 }; |
|
463 |
|
464 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry indexedTable16_unicodeToForeign_2[]= |
|
465 { |
|
466 { |
|
467 0xa1 |
|
468 }, |
|
469 { |
|
470 0x8f |
|
471 }, |
|
472 { |
|
473 0xc0 |
|
474 }, |
|
475 { |
|
476 0xc1 |
|
477 }, |
|
478 { |
|
479 0xc2 |
|
480 }, |
|
481 { |
|
482 0xc3 |
|
483 }, |
|
484 { |
|
485 0xc4 |
|
486 }, |
|
487 { |
|
488 0xc5 |
|
489 }, |
|
490 { |
|
491 0xc6 |
|
492 }, |
|
493 { |
|
494 0xc7 |
|
495 }, |
|
496 { |
|
497 0xc8 |
|
498 }, |
|
499 { |
|
500 0xc9 |
|
501 }, |
|
502 { |
|
503 0xca |
|
504 }, |
|
505 { |
|
506 0xcb |
|
507 }, |
|
508 { |
|
509 0xcc |
|
510 }, |
|
511 { |
|
512 0xcd |
|
513 }, |
|
514 { |
|
515 0xce |
|
516 }, |
|
517 { |
|
518 0xcf |
|
519 }, |
|
520 { |
|
521 0xd0 |
|
522 }, |
|
523 { |
|
524 0xd1 |
|
525 }, |
|
526 { |
|
527 0xd2 |
|
528 }, |
|
529 { |
|
530 0xd3 |
|
531 }, |
|
532 { |
|
533 0xd4 |
|
534 }, |
|
535 { |
|
536 0xd5 |
|
537 }, |
|
538 { |
|
539 0xd6 |
|
540 }, |
|
541 { |
|
542 0xd7 |
|
543 }, |
|
544 { |
|
545 0xd8 |
|
546 }, |
|
547 { |
|
548 0xd9 |
|
549 }, |
|
550 { |
|
551 0xda |
|
552 }, |
|
553 { |
|
554 0xdb |
|
555 }, |
|
556 { |
|
557 0xdc |
|
558 }, |
|
559 { |
|
560 0xdd |
|
561 }, |
|
562 { |
|
563 0xde |
|
564 }, |
|
565 { |
|
566 0xdf |
|
567 }, |
|
568 { |
|
569 0xe0 |
|
570 }, |
|
571 { |
|
572 0xe1 |
|
573 }, |
|
574 { |
|
575 0xe2 |
|
576 }, |
|
577 { |
|
578 0xe3 |
|
579 }, |
|
580 { |
|
581 0xe4 |
|
582 }, |
|
583 { |
|
584 0xe5 |
|
585 }, |
|
586 { |
|
587 0xe6 |
|
588 }, |
|
589 { |
|
590 0xe7 |
|
591 }, |
|
592 { |
|
593 0xe8 |
|
594 }, |
|
595 { |
|
596 0xe9 |
|
597 }, |
|
598 { |
|
599 0xea |
|
600 }, |
|
601 { |
|
602 0xeb |
|
603 }, |
|
604 { |
|
605 0xec |
|
606 }, |
|
607 { |
|
608 0xed |
|
609 }, |
|
610 { |
|
611 0xee |
|
612 }, |
|
613 { |
|
614 0xef |
|
615 }, |
|
616 { |
|
617 0xf0 |
|
618 }, |
|
619 { |
|
620 0xf1 |
|
621 }, |
|
622 { |
|
623 0xf2 |
|
624 }, |
|
625 { |
|
626 0xf3 |
|
627 }, |
|
628 { |
|
629 0xf4 |
|
630 }, |
|
631 { |
|
632 0xf5 |
|
633 }, |
|
634 { |
|
635 0xf6 |
|
636 }, |
|
637 { |
|
638 0xf7 |
|
639 }, |
|
640 { |
|
641 0xf8 |
|
642 }, |
|
643 { |
|
644 0xf9 |
|
645 }, |
|
646 { |
|
647 0xfa |
|
648 }, |
|
649 { |
|
650 0xfb |
|
651 }, |
|
652 { |
|
653 0xfc |
|
654 }, |
|
655 { |
|
656 0xfd |
|
657 }, |
|
658 { |
|
659 0xfe |
|
660 }, |
|
661 { |
|
662 0xff |
|
663 } |
|
664 }; |
|
665 |
|
666 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry indexedTable16_unicodeToForeign_3[]= |
|
667 { |
|
668 { |
|
669 0xb8 |
|
670 }, |
|
671 { |
|
672 0x90 |
|
673 }, |
|
674 { |
|
675 0x83 |
|
676 }, |
|
677 { |
|
678 0xba |
|
679 }, |
|
680 { |
|
681 0xbe |
|
682 }, |
|
683 { |
|
684 0xb3 |
|
685 }, |
|
686 { |
|
687 0xbf |
|
688 }, |
|
689 { |
|
690 0xbc |
|
691 }, |
|
692 { |
|
693 0x9a |
|
694 }, |
|
695 { |
|
696 0x9c |
|
697 }, |
|
698 { |
|
699 0x9e |
|
700 }, |
|
701 { |
|
702 0x9d |
|
703 } |
|
704 }; |
|
705 |
|
706 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry keyedTable1616_unicodeToForeign_1[]= |
|
707 { |
|
708 { |
|
709 0x0098, |
|
710 0x98 |
|
711 }, |
|
712 { |
|
713 0x00a0, |
|
714 0xa0 |
|
715 }, |
|
716 { |
|
717 0x00a4, |
|
718 0xa4 |
|
719 }, |
|
720 { |
|
721 0x00a6, |
|
722 0xa6 |
|
723 }, |
|
724 { |
|
725 0x00a7, |
|
726 0xa7 |
|
727 }, |
|
728 { |
|
729 0x00a9, |
|
730 0xa9 |
|
731 }, |
|
732 { |
|
733 0x00ab, |
|
734 0xab |
|
735 }, |
|
736 { |
|
737 0x00ac, |
|
738 0xac |
|
739 }, |
|
740 { |
|
741 0x00ad, |
|
742 0xad |
|
743 }, |
|
744 { |
|
745 0x00ae, |
|
746 0xae |
|
747 }, |
|
748 { |
|
749 0x00b0, |
|
750 0xb0 |
|
751 }, |
|
752 { |
|
753 0x00b1, |
|
754 0xb1 |
|
755 }, |
|
756 { |
|
757 0x00b5, |
|
758 0xb5 |
|
759 }, |
|
760 { |
|
761 0x00b6, |
|
762 0xb6 |
|
763 }, |
|
764 { |
|
765 0x00b7, |
|
766 0xb7 |
|
767 }, |
|
768 { |
|
769 0x00bb, |
|
770 0xbb |
|
771 } |
|
772 }; |
|
773 |
|
774 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry keyedTable1616_unicodeToForeign_2[]= |
|
775 { |
|
776 { |
|
777 0x045e, |
|
778 0xa2 |
|
779 }, |
|
780 { |
|
781 0x045f, |
|
782 0x9f |
|
783 }, |
|
784 { |
|
785 0x0490, |
|
786 0xa5 |
|
787 }, |
|
788 { |
|
789 0x0491, |
|
790 0xb4 |
|
791 }, |
|
792 { |
|
793 0x2013, |
|
794 0x96 |
|
795 }, |
|
796 { |
|
797 0x2014, |
|
798 0x97 |
|
799 }, |
|
800 { |
|
801 0x2018, |
|
802 0x91 |
|
803 }, |
|
804 { |
|
805 0x2019, |
|
806 0x92 |
|
807 }, |
|
808 { |
|
809 0x201a, |
|
810 0x82 |
|
811 }, |
|
812 { |
|
813 0x201c, |
|
814 0x93 |
|
815 }, |
|
816 { |
|
817 0x201d, |
|
818 0x94 |
|
819 }, |
|
820 { |
|
821 0x201e, |
|
822 0x84 |
|
823 }, |
|
824 { |
|
825 0x2020, |
|
826 0x86 |
|
827 }, |
|
828 { |
|
829 0x2021, |
|
830 0x87 |
|
831 }, |
|
832 { |
|
833 0x2022, |
|
834 0x95 |
|
835 }, |
|
836 { |
|
837 0x2026, |
|
838 0x85 |
|
839 }, |
|
840 { |
|
841 0x2030, |
|
842 0x89 |
|
843 }, |
|
844 { |
|
845 0x2039, |
|
846 0x8b |
|
847 }, |
|
848 { |
|
849 0x203a, |
|
850 0x9b |
|
851 }, |
|
852 { |
|
853 0x20ac, |
|
854 0x88 |
|
855 }, |
|
856 { |
|
857 0x2116, |
|
858 0xb9 |
|
859 }, |
|
860 { |
|
861 0x2122, |
|
862 0x99 |
|
863 } |
|
864 }; |
|
865 |
|
866 LOCAL_D const SCnvConversionData::SVariableByteData::SRange foreignVariableByteDataRanges[]= |
|
867 { |
|
868 { |
|
869 0x00, |
|
870 0xff, |
|
871 0, |
|
872 0 |
|
873 } |
|
874 }; |
|
875 |
|
876 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange foreignToUnicodeDataRanges[]= |
|
877 { |
|
878 { |
|
879 0x00, |
|
880 0x7f, |
|
881 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
882 0, |
|
883 0, |
|
884 { |
|
885 0, |
|
886 0 |
|
887 } |
|
888 }, |
|
889 { |
|
890 0x80, |
|
891 0xff, |
|
892 SCnvConversionData::SOneDirectionData::SRange::EIndexedTable16, |
|
893 0, |
|
894 0, |
|
895 { |
|
896 REINTERPRET_CAST(TUint, CONST_CAST( SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry*, indexedTable16_foreignToUnicode_1)), |
|
897 0 |
|
898 } |
|
899 } |
|
900 }; |
|
901 |
|
902 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]= |
|
903 { |
|
904 { |
|
905 0x0000, |
|
906 0x007f, |
|
907 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
908 1, |
|
909 0, |
|
910 { |
|
911 0, |
|
912 0 |
|
913 } |
|
914 }, |
|
915 { |
|
916 0x0401, |
|
917 0x040c, |
|
918 SCnvConversionData::SOneDirectionData::SRange::EIndexedTable16, |
|
919 1, |
|
920 0, |
|
921 { |
|
922 REINTERPRET_CAST(TUint, CONST_CAST( SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry*, indexedTable16_unicodeToForeign_1)), |
|
923 0 |
|
924 } |
|
925 }, |
|
926 { |
|
927 0x040e, |
|
928 0x044f, |
|
929 SCnvConversionData::SOneDirectionData::SRange::EIndexedTable16, |
|
930 1, |
|
931 0, |
|
932 { |
|
933 REINTERPRET_CAST(TUint, CONST_CAST( SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry*, indexedTable16_unicodeToForeign_2)), |
|
934 0 |
|
935 } |
|
936 }, |
|
937 { |
|
938 0x0451, |
|
939 0x045c, |
|
940 SCnvConversionData::SOneDirectionData::SRange::EIndexedTable16, |
|
941 1, |
|
942 0, |
|
943 { |
|
944 REINTERPRET_CAST(TUint, CONST_CAST( SCnvConversionData::SOneDirectionData::SRange::UData::SIndexedTable16::SEntry*, indexedTable16_unicodeToForeign_3)), |
|
945 0 |
|
946 } |
|
947 }, |
|
948 { |
|
949 0x0098, |
|
950 0x00bb, |
|
951 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616, |
|
952 1, |
|
953 0, |
|
954 { |
|
955 STATIC_CAST(TUint, ARRAY_LENGTH(keyedTable1616_unicodeToForeign_1)), |
|
956 REINTERPRET_CAST(TUint, CONST_CAST(SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry*, keyedTable1616_unicodeToForeign_1)) |
|
957 } |
|
958 }, |
|
959 { |
|
960 0x045e, |
|
961 0x2122, |
|
962 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616, |
|
963 1, |
|
964 0, |
|
965 { |
|
966 STATIC_CAST(TUint, ARRAY_LENGTH(keyedTable1616_unicodeToForeign_2)), |
|
967 REINTERPRET_CAST(TUint, CONST_CAST(SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry*, keyedTable1616_unicodeToForeign_2)) |
|
968 } |
|
969 } |
|
970 }; |
|
971 |
|
972 GLDEF_D const SCnvConversionData conversionData= |
|
973 { |
|
974 SCnvConversionData::EFixedBigEndian, |
|
975 { |
|
976 ARRAY_LENGTH(foreignVariableByteDataRanges), |
|
977 foreignVariableByteDataRanges |
|
978 }, |
|
979 { |
|
980 ARRAY_LENGTH(foreignToUnicodeDataRanges), |
|
981 foreignToUnicodeDataRanges |
|
982 }, |
|
983 { |
|
984 ARRAY_LENGTH(unicodeToForeignDataRanges), |
|
985 unicodeToForeignDataRanges |
|
986 }, |
|
987 NULL, |
|
988 NULL |
|
989 }; |
|
990 |