charconvfw/Charconv/ongoing/Source/generatedcpp/g_iso885915.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 	0x00a1,
       
    38 	0x00a2,
       
    39 	0x00a3,
       
    40 	0x20ac,
       
    41 	0x00a5,
       
    42 	0x0160,
       
    43 	0x00a7,
       
    44 	0x0161,
       
    45 	0x00a9,
       
    46 	0x00aa,
       
    47 	0x00ab,
       
    48 	0x00ac,
       
    49 	0x00ad,
       
    50 	0x00ae,
       
    51 	0x00af,
       
    52 	0x00b0,
       
    53 	0x00b1,
       
    54 	0x00b2,
       
    55 	0x00b3,
       
    56 	0x017d,
       
    57 	0x00b5,
       
    58 	0x00b6,
       
    59 	0x00b7,
       
    60 	0x017e,
       
    61 	0x00b9,
       
    62 	0x00ba,
       
    63 	0x00bb,
       
    64 	0x0152,
       
    65 	0x0153,
       
    66 	0x0178
       
    67 	};
       
    68 
       
    69 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable16OfIndexedTables16::SKeyedEntry keyedTables16OfIndexedTables16_keyedEntries_foreignToUnicode_1[]=
       
    70 	{
       
    71 		{
       
    72 		0xa0,
       
    73 		0xbe,
       
    74 		keyedTables16OfIndexedTables16_indexedEntries_foreignToUnicode_1
       
    75 		}
       
    76 	};
       
    77 
       
    78 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange::UData::SKeyedTable1616::SEntry keyedTable1616_unicodeToForeign_1[]=
       
    79 	{
       
    80 		{
       
    81 		0x00a0,
       
    82 		0xa0
       
    83 		},
       
    84 		{
       
    85 		0x00a1,
       
    86 		0xa1
       
    87 		},
       
    88 		{
       
    89 		0x00a2,
       
    90 		0xa2
       
    91 		},
       
    92 		{
       
    93 		0x00a3,
       
    94 		0xa3
       
    95 		},
       
    96 		{
       
    97 		0x00a5,
       
    98 		0xa5
       
    99 		},
       
   100 		{
       
   101 		0x00a7,
       
   102 		0xa7
       
   103 		},
       
   104 		{
       
   105 		0x00a9,
       
   106 		0xa9
       
   107 		},
       
   108 		{
       
   109 		0x00aa,
       
   110 		0xaa
       
   111 		},
       
   112 		{
       
   113 		0x00ab,
       
   114 		0xab
       
   115 		},
       
   116 		{
       
   117 		0x00ac,
       
   118 		0xac
       
   119 		},
       
   120 		{
       
   121 		0x00ad,
       
   122 		0xad
       
   123 		},
       
   124 		{
       
   125 		0x00ae,
       
   126 		0xae
       
   127 		},
       
   128 		{
       
   129 		0x00af,
       
   130 		0xaf
       
   131 		},
       
   132 		{
       
   133 		0x00b0,
       
   134 		0xb0
       
   135 		},
       
   136 		{
       
   137 		0x00b1,
       
   138 		0xb1
       
   139 		},
       
   140 		{
       
   141 		0x00b2,
       
   142 		0xb2
       
   143 		},
       
   144 		{
       
   145 		0x00b3,
       
   146 		0xb3
       
   147 		},
       
   148 		{
       
   149 		0x00b5,
       
   150 		0xb5
       
   151 		},
       
   152 		{
       
   153 		0x00b6,
       
   154 		0xb6
       
   155 		},
       
   156 		{
       
   157 		0x00b7,
       
   158 		0xb7
       
   159 		},
       
   160 		{
       
   161 		0x00b9,
       
   162 		0xb9
       
   163 		},
       
   164 		{
       
   165 		0x00ba,
       
   166 		0xba
       
   167 		},
       
   168 		{
       
   169 		0x00bb,
       
   170 		0xbb
       
   171 		},
       
   172 		{
       
   173 		0x0152,
       
   174 		0xbc
       
   175 		},
       
   176 		{
       
   177 		0x0153,
       
   178 		0xbd
       
   179 		},
       
   180 		{
       
   181 		0x0160,
       
   182 		0xa6
       
   183 		},
       
   184 		{
       
   185 		0x0161,
       
   186 		0xa8
       
   187 		},
       
   188 		{
       
   189 		0x0178,
       
   190 		0xbe
       
   191 		},
       
   192 		{
       
   193 		0x017d,
       
   194 		0xb4
       
   195 		},
       
   196 		{
       
   197 		0x017e,
       
   198 		0xb8
       
   199 		},
       
   200 		{
       
   201 		0x20ac,
       
   202 		0xa4
       
   203 		}
       
   204 	};
       
   205 
       
   206 LOCAL_D const SCnvConversionData::SVariableByteData::SRange foreignVariableByteDataRanges[]=
       
   207 	{
       
   208 		{
       
   209 		0x00,
       
   210 		0xff,
       
   211 		0,
       
   212 		0
       
   213 		}
       
   214 	};
       
   215 
       
   216 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange foreignToUnicodeDataRanges[]=
       
   217 	{
       
   218 		{
       
   219 		0x00,
       
   220 		0x9f,
       
   221 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
   222 		0,
       
   223 		0,
       
   224 			{
       
   225 			0
       
   226 			}
       
   227 		},
       
   228 		{
       
   229 		0xa0,
       
   230 		0xbe,
       
   231 		SCnvConversionData::SOneDirectionData::SRange::EKeyedTable16OfIndexedTables16,
       
   232 		0,
       
   233 		0,
       
   234 			{
       
   235 			UData_SKeyedTable16OfIndexedTables16(keyedTables16OfIndexedTables16_keyedEntries_foreignToUnicode_1)
       
   236 			}
       
   237 		},
       
   238 		{
       
   239 		0xbf,
       
   240 		0xff,
       
   241 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
   242 		0,
       
   243 		0,
       
   244 			{
       
   245 			0
       
   246 			}
       
   247 		}
       
   248 	};
       
   249 
       
   250 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]=
       
   251 	{
       
   252 		{
       
   253 		0x0000,
       
   254 		0x009f,
       
   255 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
   256 		1,
       
   257 		0,
       
   258 			{
       
   259 			0
       
   260 			}
       
   261 		},
       
   262 		{
       
   263 		0x00bf,
       
   264 		0x00ff,
       
   265 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
   266 		1,
       
   267 		0,
       
   268 			{
       
   269 			0
       
   270 			}
       
   271 		},
       
   272 		{
       
   273 		0x00a0,
       
   274 		0x20ac,
       
   275 		SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616,
       
   276 		1,
       
   277 		0,
       
   278 			{
       
   279 			UData_SKeyedTable1616(keyedTable1616_unicodeToForeign_1)
       
   280 			}
       
   281 		}
       
   282 	};
       
   283 
       
   284 GLDEF_D const SCnvConversionData conversionData=
       
   285 	{
       
   286 	SCnvConversionData::EFixedBigEndian,
       
   287 		{
       
   288 		ARRAY_LENGTH(foreignVariableByteDataRanges),
       
   289 		foreignVariableByteDataRanges
       
   290 		},
       
   291 		{
       
   292 		ARRAY_LENGTH(foreignToUnicodeDataRanges),
       
   293 		foreignToUnicodeDataRanges
       
   294 		},
       
   295 		{
       
   296 		ARRAY_LENGTH(unicodeToForeignDataRanges),
       
   297 		unicodeToForeignDataRanges
       
   298 		},
       
   299 	NULL,
       
   300 	NULL
       
   301 	};
       
   302