|
1 /* |
|
2 * Copyright (c) 1258 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 TUint16 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_1[]= |
|
37 { |
|
38 0x201a, |
|
39 0x0192, |
|
40 0x201e, |
|
41 0x2026, |
|
42 0x2020, |
|
43 0x2021, |
|
44 0x02c6, |
|
45 0x2030, |
|
46 0x008a, |
|
47 0x2039, |
|
48 0x0152, |
|
49 0x008d, |
|
50 0x008e, |
|
51 0x008f, |
|
52 0x0090, |
|
53 0x2018, |
|
54 0x2019, |
|
55 0x201c, |
|
56 0x201d, |
|
57 0x2022, |
|
58 0x2013, |
|
59 0x2014, |
|
60 0x02dc, |
|
61 0x2122, |
|
62 0x009a, |
|
63 0x203a, |
|
64 0x0153, |
|
65 0x009d, |
|
66 0x009e, |
|
67 0x0178 |
|
68 }; |
|
69 |
|
70 LOCAL_D const TUint16 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_2[]= |
|
71 { |
|
72 0x0102 |
|
73 }; |
|
74 |
|
75 LOCAL_D const TUint16 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_3[]= |
|
76 { |
|
77 0x0300, |
|
78 0x00cd, |
|
79 0x00ce, |
|
80 0x00cf, |
|
81 0x0110, |
|
82 0x00d1, |
|
83 0x0309, |
|
84 0x00d3, |
|
85 0x00d4, |
|
86 0x01a0 |
|
87 }; |
|
88 |
|
89 LOCAL_D const TUint16 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_4[]= |
|
90 { |
|
91 0x01af, |
|
92 0x0303, |
|
93 0x00df, |
|
94 0x00e0, |
|
95 0x00e1, |
|
96 0x00e2, |
|
97 0x0103 |
|
98 }; |
|
99 |
|
100 LOCAL_D const TUint16 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_5[]= |
|
101 { |
|
102 0x0301, |
|
103 0x00ed, |
|
104 0x00ee, |
|
105 0x00ef, |
|
106 0x0111, |
|
107 0x00f1, |
|
108 0x0323, |
|
109 0x00f3, |
|
110 0x00f4, |
|
111 0x01a1 |
|
112 }; |
|
113 |
|
114 LOCAL_D const TUint16 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_6[]= |
|
115 { |
|
116 0x01b0, |
|
117 0x20ab, |
|
118 0x00ff |
|
119 }; |
|
120 |
|
121 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable16OfIndexedTables16::SKeyedEntry keyedTables16OfIndexedTables16_keyedEntries_foreignToUnicode_1[]= |
|
122 { |
|
123 { |
|
124 0x82, |
|
125 0x9f, |
|
126 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_1 |
|
127 }, |
|
128 { |
|
129 0xc3, |
|
130 0xc3, |
|
131 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_2 |
|
132 }, |
|
133 { |
|
134 0xcc, |
|
135 0xd5, |
|
136 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_3 |
|
137 }, |
|
138 { |
|
139 0xdd, |
|
140 0xe3, |
|
141 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_4 |
|
142 }, |
|
143 { |
|
144 0xec, |
|
145 0xf5, |
|
146 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_5 |
|
147 }, |
|
148 { |
|
149 0xfd, |
|
150 0xff, |
|
151 keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_6 |
|
152 } |
|
153 }; |
|
154 |
|
155 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry keyedTable1616_unicodeToForeign_1[]= |
|
156 { |
|
157 { |
|
158 0x008a, |
|
159 0x8a |
|
160 }, |
|
161 { |
|
162 0x008d, |
|
163 0x8d |
|
164 }, |
|
165 { |
|
166 0x008e, |
|
167 0x8e |
|
168 }, |
|
169 { |
|
170 0x008f, |
|
171 0x8f |
|
172 }, |
|
173 { |
|
174 0x0090, |
|
175 0x90 |
|
176 }, |
|
177 { |
|
178 0x009a, |
|
179 0x9a |
|
180 }, |
|
181 { |
|
182 0x009d, |
|
183 0x9d |
|
184 }, |
|
185 { |
|
186 0x009e, |
|
187 0x9e |
|
188 }, |
|
189 { |
|
190 0x00cd, |
|
191 0xcd |
|
192 }, |
|
193 { |
|
194 0x00ce, |
|
195 0xce |
|
196 }, |
|
197 { |
|
198 0x00cf, |
|
199 0xcf |
|
200 }, |
|
201 { |
|
202 0x00d1, |
|
203 0xd1 |
|
204 }, |
|
205 { |
|
206 0x00d3, |
|
207 0xd3 |
|
208 }, |
|
209 { |
|
210 0x00d4, |
|
211 0xd4 |
|
212 }, |
|
213 { |
|
214 0x00df, |
|
215 0xdf |
|
216 }, |
|
217 { |
|
218 0x00e0, |
|
219 0xe0 |
|
220 }, |
|
221 { |
|
222 0x00e1, |
|
223 0xe1 |
|
224 }, |
|
225 { |
|
226 0x00e2, |
|
227 0xe2 |
|
228 }, |
|
229 { |
|
230 0x00ed, |
|
231 0xed |
|
232 }, |
|
233 { |
|
234 0x00ee, |
|
235 0xee |
|
236 }, |
|
237 { |
|
238 0x00ef, |
|
239 0xef |
|
240 }, |
|
241 { |
|
242 0x00f1, |
|
243 0xf1 |
|
244 }, |
|
245 { |
|
246 0x00f3, |
|
247 0xf3 |
|
248 }, |
|
249 { |
|
250 0x00f4, |
|
251 0xf4 |
|
252 }, |
|
253 { |
|
254 0x00ff, |
|
255 0xff |
|
256 }, |
|
257 { |
|
258 0x0102, |
|
259 0xc3 |
|
260 }, |
|
261 { |
|
262 0x0103, |
|
263 0xe3 |
|
264 }, |
|
265 { |
|
266 0x0110, |
|
267 0xd0 |
|
268 }, |
|
269 { |
|
270 0x0111, |
|
271 0xf0 |
|
272 }, |
|
273 { |
|
274 0x0152, |
|
275 0x8c |
|
276 }, |
|
277 { |
|
278 0x0153, |
|
279 0x9c |
|
280 }, |
|
281 { |
|
282 0x0178, |
|
283 0x9f |
|
284 }, |
|
285 { |
|
286 0x0192, |
|
287 0x83 |
|
288 }, |
|
289 { |
|
290 0x01a0, |
|
291 0xd5 |
|
292 }, |
|
293 { |
|
294 0x01a1, |
|
295 0xf5 |
|
296 }, |
|
297 { |
|
298 0x01af, |
|
299 0xdd |
|
300 }, |
|
301 { |
|
302 0x01b0, |
|
303 0xfd |
|
304 }, |
|
305 { |
|
306 0x02c6, |
|
307 0x88 |
|
308 }, |
|
309 { |
|
310 0x02dc, |
|
311 0x98 |
|
312 }, |
|
313 { |
|
314 0x0300, |
|
315 0xcc |
|
316 }, |
|
317 { |
|
318 0x0301, |
|
319 0xec |
|
320 }, |
|
321 { |
|
322 0x0303, |
|
323 0xde |
|
324 }, |
|
325 { |
|
326 0x0309, |
|
327 0xd2 |
|
328 }, |
|
329 { |
|
330 0x0323, |
|
331 0xf2 |
|
332 }, |
|
333 { |
|
334 0x2013, |
|
335 0x96 |
|
336 }, |
|
337 { |
|
338 0x2014, |
|
339 0x97 |
|
340 }, |
|
341 { |
|
342 0x2018, |
|
343 0x91 |
|
344 }, |
|
345 { |
|
346 0x2019, |
|
347 0x92 |
|
348 }, |
|
349 { |
|
350 0x201a, |
|
351 0x82 |
|
352 }, |
|
353 { |
|
354 0x201c, |
|
355 0x93 |
|
356 }, |
|
357 { |
|
358 0x201d, |
|
359 0x94 |
|
360 }, |
|
361 { |
|
362 0x201e, |
|
363 0x84 |
|
364 }, |
|
365 { |
|
366 0x2020, |
|
367 0x86 |
|
368 }, |
|
369 { |
|
370 0x2021, |
|
371 0x87 |
|
372 }, |
|
373 { |
|
374 0x2022, |
|
375 0x95 |
|
376 }, |
|
377 { |
|
378 0x2026, |
|
379 0x85 |
|
380 }, |
|
381 { |
|
382 0x2030, |
|
383 0x89 |
|
384 }, |
|
385 { |
|
386 0x2039, |
|
387 0x8b |
|
388 }, |
|
389 { |
|
390 0x203a, |
|
391 0x9b |
|
392 }, |
|
393 { |
|
394 0x20ab, |
|
395 0xfe |
|
396 }, |
|
397 { |
|
398 0x2122, |
|
399 0x99 |
|
400 } |
|
401 }; |
|
402 |
|
403 LOCAL_D const SCnvConversionData::SVariableByteData::SRange foreignVariableByteDataRanges[]= |
|
404 { |
|
405 { |
|
406 0x00, |
|
407 0xff, |
|
408 0, |
|
409 0 |
|
410 } |
|
411 }; |
|
412 |
|
413 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange foreignToUnicodeDataRanges[]= |
|
414 { |
|
415 { |
|
416 0x00, |
|
417 0x81, |
|
418 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
419 0, |
|
420 0, |
|
421 { |
|
422 0 |
|
423 } |
|
424 }, |
|
425 { |
|
426 0xa0, |
|
427 0xc2, |
|
428 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
429 0, |
|
430 0, |
|
431 { |
|
432 0 |
|
433 } |
|
434 }, |
|
435 { |
|
436 0xc4, |
|
437 0xcb, |
|
438 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
439 0, |
|
440 0, |
|
441 { |
|
442 0 |
|
443 } |
|
444 }, |
|
445 { |
|
446 0xd6, |
|
447 0xdc, |
|
448 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
449 0, |
|
450 0, |
|
451 { |
|
452 0 |
|
453 } |
|
454 }, |
|
455 { |
|
456 0xe4, |
|
457 0xeb, |
|
458 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
459 0, |
|
460 0, |
|
461 { |
|
462 0 |
|
463 } |
|
464 }, |
|
465 { |
|
466 0xf6, |
|
467 0xfc, |
|
468 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
469 0, |
|
470 0, |
|
471 { |
|
472 0 |
|
473 } |
|
474 }, |
|
475 { |
|
476 0x82, |
|
477 0xff, |
|
478 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable16OfIndexedTables16, |
|
479 0, |
|
480 0, |
|
481 { |
|
482 UData_SKeyedTable16OfIndexedTables16(keyedTables16OfIndexedTables16_keyedEntries_foreignToUnicode_1) |
|
483 } |
|
484 } |
|
485 }; |
|
486 |
|
487 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]= |
|
488 { |
|
489 { |
|
490 0x0000, |
|
491 0x0081, |
|
492 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
493 1, |
|
494 0, |
|
495 { |
|
496 0 |
|
497 } |
|
498 }, |
|
499 { |
|
500 0x00a0, |
|
501 0x00c2, |
|
502 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
503 1, |
|
504 0, |
|
505 { |
|
506 0 |
|
507 } |
|
508 }, |
|
509 { |
|
510 0x00c4, |
|
511 0x00cb, |
|
512 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
513 1, |
|
514 0, |
|
515 { |
|
516 0 |
|
517 } |
|
518 }, |
|
519 { |
|
520 0x00d6, |
|
521 0x00dc, |
|
522 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
523 1, |
|
524 0, |
|
525 { |
|
526 0 |
|
527 } |
|
528 }, |
|
529 { |
|
530 0x00e4, |
|
531 0x00eb, |
|
532 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
533 1, |
|
534 0, |
|
535 { |
|
536 0 |
|
537 } |
|
538 }, |
|
539 { |
|
540 0x00f6, |
|
541 0x00fc, |
|
542 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
543 1, |
|
544 0, |
|
545 { |
|
546 0 |
|
547 } |
|
548 }, |
|
549 { |
|
550 0x008a, |
|
551 0x2122, |
|
552 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616, |
|
553 1, |
|
554 0, |
|
555 { |
|
556 UData_SKeyedTable1616(keyedTable1616_unicodeToForeign_1) |
|
557 } |
|
558 } |
|
559 }; |
|
560 |
|
561 GLDEF_D const SCnvConversionData conversionData= |
|
562 { |
|
563 SCnvConversionData::EFixedBigEndian, |
|
564 { |
|
565 ARRAY_LENGTH(foreignVariableByteDataRanges), |
|
566 foreignVariableByteDataRanges |
|
567 }, |
|
568 { |
|
569 ARRAY_LENGTH(foreignToUnicodeDataRanges), |
|
570 foreignToUnicodeDataRanges |
|
571 }, |
|
572 { |
|
573 ARRAY_LENGTH(unicodeToForeignDataRanges), |
|
574 unicodeToForeignDataRanges |
|
575 }, |
|
576 NULL, |
|
577 NULL |
|
578 }; |
|
579 |