charconvfw/Charconvplugin/src/G_TIS_620.cpp
changeset 0 1fb32624e06b
child 16 56cd22a7a1cb
equal deleted inserted replaced
-1:000000000000 0:1fb32624e06b
       
     1 /*
       
     2 * Copyright (c) 2003 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 
       
    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 SCnvConversionData::SVariableByteData::SRange foreignVariableByteDataRanges[]=
       
    37 	{
       
    38 		{
       
    39 		0x00,
       
    40 		0xff,
       
    41 		0,
       
    42 		0
       
    43 		}
       
    44 	};
       
    45 
       
    46 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange foreignToUnicodeDataRanges[]=
       
    47 	{
       
    48 		{
       
    49 		0x00,
       
    50 		0x9f,
       
    51 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
    52 		0,
       
    53 		0,
       
    54 			{
       
    55 			0
       
    56 			}
       
    57 		},
       
    58 		{
       
    59 		0xa1,
       
    60 		0xda,
       
    61 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
    62 		0,
       
    63 		0,
       
    64 			{
       
    65 			STATIC_CAST(TUint, 3424)
       
    66 			}
       
    67 		},
       
    68 		{
       
    69 		0xdf,
       
    70 		0xfb,
       
    71 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
    72 		0,
       
    73 		0,
       
    74 			{
       
    75 			STATIC_CAST(TUint, 3424)
       
    76 			}
       
    77 		}
       
    78 	};
       
    79 
       
    80 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]=
       
    81 	{
       
    82 		{
       
    83 		0x0000,
       
    84 		0x009f,
       
    85 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
    86 		1,
       
    87 		0,
       
    88 			{
       
    89 			0
       
    90 			}
       
    91 		},
       
    92 		{
       
    93 		0x0e01,
       
    94 		0x0e3a,
       
    95 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
    96 		1,
       
    97 		0,
       
    98 			{
       
    99 			STATIC_CAST(TUint, -3424)
       
   100 			}
       
   101 		},
       
   102 		{
       
   103 		0x0e3f,
       
   104 		0x0e5b,
       
   105 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
   106 		1,
       
   107 		0,
       
   108 			{
       
   109 			STATIC_CAST(TUint, -3424)
       
   110 			}
       
   111 		}
       
   112 	};
       
   113 
       
   114 GLDEF_D const SCnvConversionData conversionData=
       
   115 	{
       
   116 	SCnvConversionData::EFixedBigEndian,
       
   117 		{
       
   118 		ARRAY_LENGTH(foreignVariableByteDataRanges),
       
   119 		foreignVariableByteDataRanges
       
   120 		},
       
   121 		{
       
   122 		ARRAY_LENGTH(foreignToUnicodeDataRanges),
       
   123 		foreignToUnicodeDataRanges
       
   124 		},
       
   125 		{
       
   126 		ARRAY_LENGTH(unicodeToForeignDataRanges),
       
   127 		unicodeToForeignDataRanges
       
   128 		},
       
   129 	NULL,
       
   130 	NULL
       
   131 	};
       
   132