charconvfw/Charconv/ongoing/Source/generatedcpp/g_iso88596.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 SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry keyedTable1616_foreignToUnicode_1[]=
       
    35 	{
       
    36 		{
       
    37 		0xa0,
       
    38 		0x00a0
       
    39 		},
       
    40 		{
       
    41 		0xa4,
       
    42 		0x00a4
       
    43 		},
       
    44 		{
       
    45 		0xac,
       
    46 		0x060c
       
    47 		},
       
    48 		{
       
    49 		0xad,
       
    50 		0x00ad
       
    51 		},
       
    52 		{
       
    53 		0xbb,
       
    54 		0x061b
       
    55 		},
       
    56 		{
       
    57 		0xbf,
       
    58 		0x061f
       
    59 		}
       
    60 	};
       
    61 
       
    62 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry keyedTable1616_unicodeToForeign_1[]=
       
    63 	{
       
    64 		{
       
    65 		0x00a0,
       
    66 		0xa0
       
    67 		},
       
    68 		{
       
    69 		0x00a4,
       
    70 		0xa4
       
    71 		},
       
    72 		{
       
    73 		0x00ad,
       
    74 		0xad
       
    75 		},
       
    76 		{
       
    77 		0x060c,
       
    78 		0xac
       
    79 		},
       
    80 		{
       
    81 		0x061b,
       
    82 		0xbb
       
    83 		},
       
    84 		{
       
    85 		0x061f,
       
    86 		0xbf
       
    87 		}
       
    88 	};
       
    89 
       
    90 LOCAL_D const SCnvConversionData::SVariableByteData::SRange foreignVariableByteDataRanges[]=
       
    91 	{
       
    92 		{
       
    93 		0x00,
       
    94 		0xff,
       
    95 		0,
       
    96 		0
       
    97 		}
       
    98 	};
       
    99 
       
   100 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange foreignToUnicodeDataRanges[]=
       
   101 	{
       
   102 		{
       
   103 		0x00,
       
   104 		0x9f,
       
   105 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
   106 		0,
       
   107 		0,
       
   108 			{
       
   109 			0
       
   110 			}
       
   111 		},
       
   112 		{
       
   113 		0xc1,
       
   114 		0xda,
       
   115 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
   116 		0,
       
   117 		0,
       
   118 			{
       
   119 			STATIC_CAST(TUint, 1376)
       
   120 			}
       
   121 		},
       
   122 		{
       
   123 		0xe0,
       
   124 		0xf2,
       
   125 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
   126 		0,
       
   127 		0,
       
   128 			{
       
   129 			STATIC_CAST(TUint, 1376)
       
   130 			}
       
   131 		},
       
   132 		{
       
   133 		0xa0,
       
   134 		0xbf,
       
   135 		SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616,
       
   136 		0,
       
   137 		0,
       
   138 			{
       
   139 			UData_SKeyedTable1616(keyedTable1616_foreignToUnicode_1)
       
   140 			}
       
   141 		}
       
   142 	};
       
   143 
       
   144 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]=
       
   145 	{
       
   146 		{
       
   147 		0x0000,
       
   148 		0x009f,
       
   149 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
   150 		1,
       
   151 		0,
       
   152 			{
       
   153 			0
       
   154 			}
       
   155 		},
       
   156 		{
       
   157 		0x0621,
       
   158 		0x063a,
       
   159 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
   160 		1,
       
   161 		0,
       
   162 			{
       
   163 			STATIC_CAST(TUint, -1376)
       
   164 			}
       
   165 		},
       
   166 		{
       
   167 		0x0640,
       
   168 		0x0652,
       
   169 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
   170 		1,
       
   171 		0,
       
   172 			{
       
   173 			STATIC_CAST(TUint, -1376)
       
   174 			}
       
   175 		},
       
   176 		{
       
   177 		0x00a0,
       
   178 		0x061f,
       
   179 		SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616,
       
   180 		1,
       
   181 		0,
       
   182 			{
       
   183 			UData_SKeyedTable1616(keyedTable1616_unicodeToForeign_1)
       
   184 			}
       
   185 		}
       
   186 	};
       
   187 
       
   188 GLDEF_D const SCnvConversionData conversionData=
       
   189 	{
       
   190 	SCnvConversionData::EFixedBigEndian,
       
   191 		{
       
   192 		ARRAY_LENGTH(foreignVariableByteDataRanges),
       
   193 		foreignVariableByteDataRanges
       
   194 		},
       
   195 		{
       
   196 		ARRAY_LENGTH(foreignToUnicodeDataRanges),
       
   197 		foreignToUnicodeDataRanges
       
   198 		},
       
   199 		{
       
   200 		ARRAY_LENGTH(unicodeToForeignDataRanges),
       
   201 		unicodeToForeignDataRanges
       
   202 		},
       
   203 	NULL,
       
   204 	NULL
       
   205 	};
       
   206