charconvfw/Charconv/ongoing/Source/generatedcpp/g_iso885913.cpp
changeset 0 1fb32624e06b
child 16 56cd22a7a1cb
equal deleted inserted replaced
-1:000000000000 0:1fb32624e06b
       
     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 "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 	0x201d,
       
    38 	0x00a2,
       
    39 	0x00a3,
       
    40 	0x00a4,
       
    41 	0x201e,
       
    42 	0x00a6,
       
    43 	0x00a7,
       
    44 	0x00d8,
       
    45 	0x00a9,
       
    46 	0x0156,
       
    47 	0x00ab,
       
    48 	0x00ac,
       
    49 	0x00ad,
       
    50 	0x00ae,
       
    51 	0x00c6,
       
    52 	0x00b0,
       
    53 	0x00b1,
       
    54 	0x00b2,
       
    55 	0x00b3,
       
    56 	0x201c,
       
    57 	0x00b5,
       
    58 	0x00b6,
       
    59 	0x00b7,
       
    60 	0x00f8,
       
    61 	0x00b9,
       
    62 	0x0157,
       
    63 	0x00bb,
       
    64 	0x00bc,
       
    65 	0x00bd,
       
    66 	0x00be,
       
    67 	0x00e6,
       
    68 	0x0104,
       
    69 	0x012e,
       
    70 	0x0100,
       
    71 	0x0106,
       
    72 	0x00c4,
       
    73 	0x00c5,
       
    74 	0x0118,
       
    75 	0x0112,
       
    76 	0x010c,
       
    77 	0x00c9,
       
    78 	0x0179,
       
    79 	0x0116,
       
    80 	0x0122,
       
    81 	0x0136,
       
    82 	0x012a,
       
    83 	0x013b,
       
    84 	0x0160,
       
    85 	0x0143,
       
    86 	0x0145,
       
    87 	0x00d3,
       
    88 	0x014c,
       
    89 	0x00d5,
       
    90 	0x00d6,
       
    91 	0x00d7,
       
    92 	0x0172,
       
    93 	0x0141,
       
    94 	0x015a,
       
    95 	0x016a,
       
    96 	0x00dc,
       
    97 	0x017b,
       
    98 	0x017d,
       
    99 	0x00df,
       
   100 	0x0105,
       
   101 	0x012f,
       
   102 	0x0101,
       
   103 	0x0107,
       
   104 	0x00e4,
       
   105 	0x00e5,
       
   106 	0x0119,
       
   107 	0x0113,
       
   108 	0x010d,
       
   109 	0x00e9,
       
   110 	0x017a,
       
   111 	0x0117,
       
   112 	0x0123,
       
   113 	0x0137,
       
   114 	0x012b,
       
   115 	0x013c,
       
   116 	0x0161,
       
   117 	0x0144,
       
   118 	0x0146,
       
   119 	0x00f3,
       
   120 	0x014d,
       
   121 	0x00f5,
       
   122 	0x00f6,
       
   123 	0x00f7,
       
   124 	0x0173,
       
   125 	0x0142,
       
   126 	0x015b,
       
   127 	0x016b,
       
   128 	0x00fc,
       
   129 	0x017c,
       
   130 	0x017e,
       
   131 	0x2019
       
   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 		0x00a2,
       
   151 		0xa2
       
   152 		},
       
   153 		{
       
   154 		0x00a3,
       
   155 		0xa3
       
   156 		},
       
   157 		{
       
   158 		0x00a4,
       
   159 		0xa4
       
   160 		},
       
   161 		{
       
   162 		0x00a6,
       
   163 		0xa6
       
   164 		},
       
   165 		{
       
   166 		0x00a7,
       
   167 		0xa7
       
   168 		},
       
   169 		{
       
   170 		0x00a9,
       
   171 		0xa9
       
   172 		},
       
   173 		{
       
   174 		0x00ab,
       
   175 		0xab
       
   176 		},
       
   177 		{
       
   178 		0x00ac,
       
   179 		0xac
       
   180 		},
       
   181 		{
       
   182 		0x00ad,
       
   183 		0xad
       
   184 		},
       
   185 		{
       
   186 		0x00ae,
       
   187 		0xae
       
   188 		},
       
   189 		{
       
   190 		0x00b0,
       
   191 		0xb0
       
   192 		},
       
   193 		{
       
   194 		0x00b1,
       
   195 		0xb1
       
   196 		},
       
   197 		{
       
   198 		0x00b2,
       
   199 		0xb2
       
   200 		},
       
   201 		{
       
   202 		0x00b3,
       
   203 		0xb3
       
   204 		},
       
   205 		{
       
   206 		0x00b5,
       
   207 		0xb5
       
   208 		},
       
   209 		{
       
   210 		0x00b6,
       
   211 		0xb6
       
   212 		},
       
   213 		{
       
   214 		0x00b7,
       
   215 		0xb7
       
   216 		},
       
   217 		{
       
   218 		0x00b9,
       
   219 		0xb9
       
   220 		},
       
   221 		{
       
   222 		0x00bb,
       
   223 		0xbb
       
   224 		},
       
   225 		{
       
   226 		0x00bc,
       
   227 		0xbc
       
   228 		},
       
   229 		{
       
   230 		0x00bd,
       
   231 		0xbd
       
   232 		},
       
   233 		{
       
   234 		0x00be,
       
   235 		0xbe
       
   236 		},
       
   237 		{
       
   238 		0x00c4,
       
   239 		0xc4
       
   240 		},
       
   241 		{
       
   242 		0x00c5,
       
   243 		0xc5
       
   244 		},
       
   245 		{
       
   246 		0x00c6,
       
   247 		0xaf
       
   248 		},
       
   249 		{
       
   250 		0x00c9,
       
   251 		0xc9
       
   252 		},
       
   253 		{
       
   254 		0x00d3,
       
   255 		0xd3
       
   256 		},
       
   257 		{
       
   258 		0x00d5,
       
   259 		0xd5
       
   260 		},
       
   261 		{
       
   262 		0x00d6,
       
   263 		0xd6
       
   264 		},
       
   265 		{
       
   266 		0x00d7,
       
   267 		0xd7
       
   268 		},
       
   269 		{
       
   270 		0x00d8,
       
   271 		0xa8
       
   272 		},
       
   273 		{
       
   274 		0x00dc,
       
   275 		0xdc
       
   276 		},
       
   277 		{
       
   278 		0x00df,
       
   279 		0xdf
       
   280 		},
       
   281 		{
       
   282 		0x00e4,
       
   283 		0xe4
       
   284 		},
       
   285 		{
       
   286 		0x00e5,
       
   287 		0xe5
       
   288 		},
       
   289 		{
       
   290 		0x00e6,
       
   291 		0xbf
       
   292 		},
       
   293 		{
       
   294 		0x00e9,
       
   295 		0xe9
       
   296 		},
       
   297 		{
       
   298 		0x00f3,
       
   299 		0xf3
       
   300 		},
       
   301 		{
       
   302 		0x00f5,
       
   303 		0xf5
       
   304 		},
       
   305 		{
       
   306 		0x00f6,
       
   307 		0xf6
       
   308 		},
       
   309 		{
       
   310 		0x00f7,
       
   311 		0xf7
       
   312 		},
       
   313 		{
       
   314 		0x00f8,
       
   315 		0xb8
       
   316 		},
       
   317 		{
       
   318 		0x00fc,
       
   319 		0xfc
       
   320 		},
       
   321 		{
       
   322 		0x0100,
       
   323 		0xc2
       
   324 		},
       
   325 		{
       
   326 		0x0101,
       
   327 		0xe2
       
   328 		},
       
   329 		{
       
   330 		0x0104,
       
   331 		0xc0
       
   332 		},
       
   333 		{
       
   334 		0x0105,
       
   335 		0xe0
       
   336 		},
       
   337 		{
       
   338 		0x0106,
       
   339 		0xc3
       
   340 		},
       
   341 		{
       
   342 		0x0107,
       
   343 		0xe3
       
   344 		},
       
   345 		{
       
   346 		0x010c,
       
   347 		0xc8
       
   348 		},
       
   349 		{
       
   350 		0x010d,
       
   351 		0xe8
       
   352 		},
       
   353 		{
       
   354 		0x0112,
       
   355 		0xc7
       
   356 		},
       
   357 		{
       
   358 		0x0113,
       
   359 		0xe7
       
   360 		},
       
   361 		{
       
   362 		0x0116,
       
   363 		0xcb
       
   364 		},
       
   365 		{
       
   366 		0x0117,
       
   367 		0xeb
       
   368 		},
       
   369 		{
       
   370 		0x0118,
       
   371 		0xc6
       
   372 		},
       
   373 		{
       
   374 		0x0119,
       
   375 		0xe6
       
   376 		},
       
   377 		{
       
   378 		0x0122,
       
   379 		0xcc
       
   380 		},
       
   381 		{
       
   382 		0x0123,
       
   383 		0xec
       
   384 		},
       
   385 		{
       
   386 		0x012a,
       
   387 		0xce
       
   388 		},
       
   389 		{
       
   390 		0x012b,
       
   391 		0xee
       
   392 		},
       
   393 		{
       
   394 		0x012e,
       
   395 		0xc1
       
   396 		},
       
   397 		{
       
   398 		0x012f,
       
   399 		0xe1
       
   400 		},
       
   401 		{
       
   402 		0x0136,
       
   403 		0xcd
       
   404 		},
       
   405 		{
       
   406 		0x0137,
       
   407 		0xed
       
   408 		},
       
   409 		{
       
   410 		0x013b,
       
   411 		0xcf
       
   412 		},
       
   413 		{
       
   414 		0x013c,
       
   415 		0xef
       
   416 		},
       
   417 		{
       
   418 		0x0141,
       
   419 		0xd9
       
   420 		},
       
   421 		{
       
   422 		0x0142,
       
   423 		0xf9
       
   424 		},
       
   425 		{
       
   426 		0x0143,
       
   427 		0xd1
       
   428 		},
       
   429 		{
       
   430 		0x0144,
       
   431 		0xf1
       
   432 		},
       
   433 		{
       
   434 		0x0145,
       
   435 		0xd2
       
   436 		},
       
   437 		{
       
   438 		0x0146,
       
   439 		0xf2
       
   440 		},
       
   441 		{
       
   442 		0x014c,
       
   443 		0xd4
       
   444 		},
       
   445 		{
       
   446 		0x014d,
       
   447 		0xf4
       
   448 		},
       
   449 		{
       
   450 		0x0156,
       
   451 		0xaa
       
   452 		},
       
   453 		{
       
   454 		0x0157,
       
   455 		0xba
       
   456 		},
       
   457 		{
       
   458 		0x015a,
       
   459 		0xda
       
   460 		},
       
   461 		{
       
   462 		0x015b,
       
   463 		0xfa
       
   464 		},
       
   465 		{
       
   466 		0x0160,
       
   467 		0xd0
       
   468 		},
       
   469 		{
       
   470 		0x0161,
       
   471 		0xf0
       
   472 		},
       
   473 		{
       
   474 		0x016a,
       
   475 		0xdb
       
   476 		},
       
   477 		{
       
   478 		0x016b,
       
   479 		0xfb
       
   480 		},
       
   481 		{
       
   482 		0x0172,
       
   483 		0xd8
       
   484 		},
       
   485 		{
       
   486 		0x0173,
       
   487 		0xf8
       
   488 		},
       
   489 		{
       
   490 		0x0179,
       
   491 		0xca
       
   492 		},
       
   493 		{
       
   494 		0x017a,
       
   495 		0xea
       
   496 		},
       
   497 		{
       
   498 		0x017b,
       
   499 		0xdd
       
   500 		},
       
   501 		{
       
   502 		0x017c,
       
   503 		0xfd
       
   504 		},
       
   505 		{
       
   506 		0x017d,
       
   507 		0xde
       
   508 		},
       
   509 		{
       
   510 		0x017e,
       
   511 		0xfe
       
   512 		},
       
   513 		{
       
   514 		0x2019,
       
   515 		0xff
       
   516 		},
       
   517 		{
       
   518 		0x201c,
       
   519 		0xb4
       
   520 		},
       
   521 		{
       
   522 		0x201d,
       
   523 		0xa1
       
   524 		},
       
   525 		{
       
   526 		0x201e,
       
   527 		0xa5
       
   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 		0x201e,
       
   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