charconvfw/Charconv/ongoing/Source/generatedcpp/g_iso88594.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 	0x0104,
       
    38 	0x0138,
       
    39 	0x0156,
       
    40 	0x00a4,
       
    41 	0x0128,
       
    42 	0x013b,
       
    43 	0x00a7,
       
    44 	0x00a8,
       
    45 	0x0160,
       
    46 	0x0112,
       
    47 	0x0122,
       
    48 	0x0166,
       
    49 	0x00ad,
       
    50 	0x017d,
       
    51 	0x00af,
       
    52 	0x00b0,
       
    53 	0x0105,
       
    54 	0x02db,
       
    55 	0x0157,
       
    56 	0x00b4,
       
    57 	0x0129,
       
    58 	0x013c,
       
    59 	0x02c7,
       
    60 	0x00b8,
       
    61 	0x0161,
       
    62 	0x0113,
       
    63 	0x0123,
       
    64 	0x0167,
       
    65 	0x014a,
       
    66 	0x017e,
       
    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 	0x012a,
       
    84 	0x0110,
       
    85 	0x0145,
       
    86 	0x014c,
       
    87 	0x0136,
       
    88 	0x00d4,
       
    89 	0x00d5,
       
    90 	0x00d6,
       
    91 	0x00d7,
       
    92 	0x00d8,
       
    93 	0x0172,
       
    94 	0x00da,
       
    95 	0x00db,
       
    96 	0x00dc,
       
    97 	0x0168,
       
    98 	0x016a,
       
    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 	0x012b,
       
   116 	0x0111,
       
   117 	0x0146,
       
   118 	0x014d,
       
   119 	0x0137,
       
   120 	0x00f4,
       
   121 	0x00f5,
       
   122 	0x00f6,
       
   123 	0x00f7,
       
   124 	0x00f8,
       
   125 	0x0173,
       
   126 	0x00fa,
       
   127 	0x00fb,
       
   128 	0x00fc,
       
   129 	0x0169,
       
   130 	0x016b,
       
   131 	0x02d9
       
   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 		0x00a4,
       
   151 		0xa4
       
   152 		},
       
   153 		{
       
   154 		0x00a7,
       
   155 		0xa7
       
   156 		},
       
   157 		{
       
   158 		0x00a8,
       
   159 		0xa8
       
   160 		},
       
   161 		{
       
   162 		0x00ad,
       
   163 		0xad
       
   164 		},
       
   165 		{
       
   166 		0x00af,
       
   167 		0xaf
       
   168 		},
       
   169 		{
       
   170 		0x00b0,
       
   171 		0xb0
       
   172 		},
       
   173 		{
       
   174 		0x00b4,
       
   175 		0xb4
       
   176 		},
       
   177 		{
       
   178 		0x00b8,
       
   179 		0xb8
       
   180 		},
       
   181 		{
       
   182 		0x00c1,
       
   183 		0xc1
       
   184 		},
       
   185 		{
       
   186 		0x00c2,
       
   187 		0xc2
       
   188 		},
       
   189 		{
       
   190 		0x00c3,
       
   191 		0xc3
       
   192 		},
       
   193 		{
       
   194 		0x00c4,
       
   195 		0xc4
       
   196 		},
       
   197 		{
       
   198 		0x00c5,
       
   199 		0xc5
       
   200 		},
       
   201 		{
       
   202 		0x00c6,
       
   203 		0xc6
       
   204 		},
       
   205 		{
       
   206 		0x00c9,
       
   207 		0xc9
       
   208 		},
       
   209 		{
       
   210 		0x00cb,
       
   211 		0xcb
       
   212 		},
       
   213 		{
       
   214 		0x00cd,
       
   215 		0xcd
       
   216 		},
       
   217 		{
       
   218 		0x00ce,
       
   219 		0xce
       
   220 		},
       
   221 		{
       
   222 		0x00d4,
       
   223 		0xd4
       
   224 		},
       
   225 		{
       
   226 		0x00d5,
       
   227 		0xd5
       
   228 		},
       
   229 		{
       
   230 		0x00d6,
       
   231 		0xd6
       
   232 		},
       
   233 		{
       
   234 		0x00d7,
       
   235 		0xd7
       
   236 		},
       
   237 		{
       
   238 		0x00d8,
       
   239 		0xd8
       
   240 		},
       
   241 		{
       
   242 		0x00da,
       
   243 		0xda
       
   244 		},
       
   245 		{
       
   246 		0x00db,
       
   247 		0xdb
       
   248 		},
       
   249 		{
       
   250 		0x00dc,
       
   251 		0xdc
       
   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 		0x00f4,
       
   299 		0xf4
       
   300 		},
       
   301 		{
       
   302 		0x00f5,
       
   303 		0xf5
       
   304 		},
       
   305 		{
       
   306 		0x00f6,
       
   307 		0xf6
       
   308 		},
       
   309 		{
       
   310 		0x00f7,
       
   311 		0xf7
       
   312 		},
       
   313 		{
       
   314 		0x00f8,
       
   315 		0xf8
       
   316 		},
       
   317 		{
       
   318 		0x00fa,
       
   319 		0xfa
       
   320 		},
       
   321 		{
       
   322 		0x00fb,
       
   323 		0xfb
       
   324 		},
       
   325 		{
       
   326 		0x00fc,
       
   327 		0xfc
       
   328 		},
       
   329 		{
       
   330 		0x0100,
       
   331 		0xc0
       
   332 		},
       
   333 		{
       
   334 		0x0101,
       
   335 		0xe0
       
   336 		},
       
   337 		{
       
   338 		0x0104,
       
   339 		0xa1
       
   340 		},
       
   341 		{
       
   342 		0x0105,
       
   343 		0xb1
       
   344 		},
       
   345 		{
       
   346 		0x010c,
       
   347 		0xc8
       
   348 		},
       
   349 		{
       
   350 		0x010d,
       
   351 		0xe8
       
   352 		},
       
   353 		{
       
   354 		0x0110,
       
   355 		0xd0
       
   356 		},
       
   357 		{
       
   358 		0x0111,
       
   359 		0xf0
       
   360 		},
       
   361 		{
       
   362 		0x0112,
       
   363 		0xaa
       
   364 		},
       
   365 		{
       
   366 		0x0113,
       
   367 		0xba
       
   368 		},
       
   369 		{
       
   370 		0x0116,
       
   371 		0xcc
       
   372 		},
       
   373 		{
       
   374 		0x0117,
       
   375 		0xec
       
   376 		},
       
   377 		{
       
   378 		0x0118,
       
   379 		0xca
       
   380 		},
       
   381 		{
       
   382 		0x0119,
       
   383 		0xea
       
   384 		},
       
   385 		{
       
   386 		0x0122,
       
   387 		0xab
       
   388 		},
       
   389 		{
       
   390 		0x0123,
       
   391 		0xbb
       
   392 		},
       
   393 		{
       
   394 		0x0128,
       
   395 		0xa5
       
   396 		},
       
   397 		{
       
   398 		0x0129,
       
   399 		0xb5
       
   400 		},
       
   401 		{
       
   402 		0x012a,
       
   403 		0xcf
       
   404 		},
       
   405 		{
       
   406 		0x012b,
       
   407 		0xef
       
   408 		},
       
   409 		{
       
   410 		0x012e,
       
   411 		0xc7
       
   412 		},
       
   413 		{
       
   414 		0x012f,
       
   415 		0xe7
       
   416 		},
       
   417 		{
       
   418 		0x0136,
       
   419 		0xd3
       
   420 		},
       
   421 		{
       
   422 		0x0137,
       
   423 		0xf3
       
   424 		},
       
   425 		{
       
   426 		0x0138,
       
   427 		0xa2
       
   428 		},
       
   429 		{
       
   430 		0x013b,
       
   431 		0xa6
       
   432 		},
       
   433 		{
       
   434 		0x013c,
       
   435 		0xb6
       
   436 		},
       
   437 		{
       
   438 		0x0145,
       
   439 		0xd1
       
   440 		},
       
   441 		{
       
   442 		0x0146,
       
   443 		0xf1
       
   444 		},
       
   445 		{
       
   446 		0x014a,
       
   447 		0xbd
       
   448 		},
       
   449 		{
       
   450 		0x014b,
       
   451 		0xbf
       
   452 		},
       
   453 		{
       
   454 		0x014c,
       
   455 		0xd2
       
   456 		},
       
   457 		{
       
   458 		0x014d,
       
   459 		0xf2
       
   460 		},
       
   461 		{
       
   462 		0x0156,
       
   463 		0xa3
       
   464 		},
       
   465 		{
       
   466 		0x0157,
       
   467 		0xb3
       
   468 		},
       
   469 		{
       
   470 		0x0160,
       
   471 		0xa9
       
   472 		},
       
   473 		{
       
   474 		0x0161,
       
   475 		0xb9
       
   476 		},
       
   477 		{
       
   478 		0x0166,
       
   479 		0xac
       
   480 		},
       
   481 		{
       
   482 		0x0167,
       
   483 		0xbc
       
   484 		},
       
   485 		{
       
   486 		0x0168,
       
   487 		0xdd
       
   488 		},
       
   489 		{
       
   490 		0x0169,
       
   491 		0xfd
       
   492 		},
       
   493 		{
       
   494 		0x016a,
       
   495 		0xde
       
   496 		},
       
   497 		{
       
   498 		0x016b,
       
   499 		0xfe
       
   500 		},
       
   501 		{
       
   502 		0x0172,
       
   503 		0xd9
       
   504 		},
       
   505 		{
       
   506 		0x0173,
       
   507 		0xf9
       
   508 		},
       
   509 		{
       
   510 		0x017d,
       
   511 		0xae
       
   512 		},
       
   513 		{
       
   514 		0x017e,
       
   515 		0xbe
       
   516 		},
       
   517 		{
       
   518 		0x02c7,
       
   519 		0xb7
       
   520 		},
       
   521 		{
       
   522 		0x02d9,
       
   523 		0xff
       
   524 		},
       
   525 		{
       
   526 		0x02db,
       
   527 		0xb2
       
   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 		0x02db,
       
   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