charconvfw/Charconv/ongoing/Source/generatedcpp/g_jisx0201.cpp
changeset 32 8b9155204a54
equal deleted inserted replaced
31:b9ad20498fb4 32:8b9155204a54
       
     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 the License "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 LOCAL_D const SCnvConversionData::SVariableByteData::SRange foreignVariableByteDataRanges[]=
       
    28 	{
       
    29 		{
       
    30 		0x00,
       
    31 		0xff,
       
    32 		0,
       
    33 		0
       
    34 		}
       
    35 	};
       
    36 
       
    37 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange foreignToUnicodeDataRanges[]=
       
    38 	{
       
    39 		{
       
    40 		0x00,
       
    41 		0x5b,
       
    42 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
    43 		0,
       
    44 		0,
       
    45 			{
       
    46 			0
       
    47 			}
       
    48 		},
       
    49 		{
       
    50 		0x5c,
       
    51 		0x5c,
       
    52 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
    53 		0,
       
    54 		0,
       
    55 			{
       
    56 			STATIC_CAST(TUint, 73)
       
    57 			}
       
    58 		},
       
    59 		{
       
    60 		0x5d,
       
    61 		0x7f,
       
    62 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
    63 		0,
       
    64 		0,
       
    65 			{
       
    66 			0
       
    67 			}
       
    68 		},
       
    69 		{
       
    70 		0xa1,
       
    71 		0xdf,
       
    72 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
    73 		0,
       
    74 		0,
       
    75 			{
       
    76 			STATIC_CAST(TUint, 65216)
       
    77 			}
       
    78 		}
       
    79 	};
       
    80 
       
    81 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]=
       
    82 	{
       
    83 		{
       
    84 		0x0000,
       
    85 		0x007f,
       
    86 		SCnvConversionData::SOneDirectionData::SRange::EDirect,
       
    87 		1,
       
    88 		0,
       
    89 			{
       
    90 			0
       
    91 			}
       
    92 		},
       
    93 		{
       
    94 		0x00a5,
       
    95 		0x00a5,
       
    96 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
    97 		1,
       
    98 		0,
       
    99 			{
       
   100 			STATIC_CAST(TUint, -73)
       
   101 			}
       
   102 		},
       
   103 		{
       
   104 		0xff61,
       
   105 		0xff9f,
       
   106 		SCnvConversionData::SOneDirectionData::SRange::EOffset,
       
   107 		1,
       
   108 		0,
       
   109 			{
       
   110 			STATIC_CAST(TUint, -65216)
       
   111 			}
       
   112 		}
       
   113 	};
       
   114 
       
   115 GLDEF_D const SCnvConversionData conversionData=
       
   116 	{
       
   117 	SCnvConversionData::EFixedBigEndian,
       
   118 		{
       
   119 		ARRAY_LENGTH(foreignVariableByteDataRanges),
       
   120 		foreignVariableByteDataRanges
       
   121 		},
       
   122 		{
       
   123 		ARRAY_LENGTH(foreignToUnicodeDataRanges),
       
   124 		foreignToUnicodeDataRanges
       
   125 		},
       
   126 		{
       
   127 		ARRAY_LENGTH(unicodeToForeignDataRanges),
       
   128 		unicodeToForeignDataRanges
       
   129 		},
       
   130 	NULL,
       
   131 	NULL
       
   132 	};
       
   133 
       
   134 GLREF_D const SCnvConversionData jisRomanConversionData;
       
   135 GLDEF_D const SCnvConversionData jisRomanConversionData=
       
   136 	{
       
   137 	SCnvConversionData::EFixedBigEndian,
       
   138 		{
       
   139 		ARRAY_LENGTH(foreignVariableByteDataRanges),
       
   140 		foreignVariableByteDataRanges
       
   141 		},
       
   142 		{
       
   143 		3-0,
       
   144 		foreignToUnicodeDataRanges+0
       
   145 		},
       
   146 		{
       
   147 		2-0,
       
   148 		unicodeToForeignDataRanges+0
       
   149 		}
       
   150 	};
       
   151 
       
   152 GLREF_D const SCnvConversionData halfWidthKatakana8ConversionData;
       
   153 GLDEF_D const SCnvConversionData halfWidthKatakana8ConversionData=
       
   154 	{
       
   155 	SCnvConversionData::EFixedBigEndian,
       
   156 		{
       
   157 		ARRAY_LENGTH(foreignVariableByteDataRanges),
       
   158 		foreignVariableByteDataRanges
       
   159 		},
       
   160 		{
       
   161 		4-3,
       
   162 		foreignToUnicodeDataRanges+3
       
   163 		},
       
   164 		{
       
   165 		3-2,
       
   166 		unicodeToForeignDataRanges+2
       
   167 		}
       
   168 	};
       
   169