|
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 0xad, |
|
42 0x00ad |
|
43 }, |
|
44 { |
|
45 0xf0, |
|
46 0x2116 |
|
47 }, |
|
48 { |
|
49 0xfd, |
|
50 0x00a7 |
|
51 }, |
|
52 { |
|
53 0xfe, |
|
54 0x045e |
|
55 }, |
|
56 { |
|
57 0xff, |
|
58 0x045f |
|
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 0x00a7, |
|
70 0xfd |
|
71 }, |
|
72 { |
|
73 0x00ad, |
|
74 0xad |
|
75 }, |
|
76 { |
|
77 0x045e, |
|
78 0xfe |
|
79 }, |
|
80 { |
|
81 0x045f, |
|
82 0xff |
|
83 }, |
|
84 { |
|
85 0x2116, |
|
86 0xf0 |
|
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 0xa1, |
|
114 0xac, |
|
115 SCnvConversionData::SOneDirectionData::SRange::EOffset, |
|
116 0, |
|
117 0, |
|
118 { |
|
119 STATIC_CAST(TUint, 864) |
|
120 } |
|
121 }, |
|
122 { |
|
123 0xae, |
|
124 0xef, |
|
125 SCnvConversionData::SOneDirectionData::SRange::EOffset, |
|
126 0, |
|
127 0, |
|
128 { |
|
129 STATIC_CAST(TUint, 864) |
|
130 } |
|
131 }, |
|
132 { |
|
133 0xf1, |
|
134 0xfc, |
|
135 SCnvConversionData::SOneDirectionData::SRange::EOffset, |
|
136 0, |
|
137 0, |
|
138 { |
|
139 STATIC_CAST(TUint, 864) |
|
140 } |
|
141 }, |
|
142 { |
|
143 0xa0, |
|
144 0xff, |
|
145 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616, |
|
146 0, |
|
147 0, |
|
148 { |
|
149 UData_SKeyedTable1616(keyedTable1616_foreignToUnicode_1) |
|
150 } |
|
151 } |
|
152 }; |
|
153 |
|
154 LOCAL_D const SCnvConversionData::SOneDirectionData::SRange unicodeToForeignDataRanges[]= |
|
155 { |
|
156 { |
|
157 0x0000, |
|
158 0x009f, |
|
159 SCnvConversionData::SOneDirectionData::SRange::EDirect, |
|
160 1, |
|
161 0, |
|
162 { |
|
163 0 |
|
164 } |
|
165 }, |
|
166 { |
|
167 0x0401, |
|
168 0x040c, |
|
169 SCnvConversionData::SOneDirectionData::SRange::EOffset, |
|
170 1, |
|
171 0, |
|
172 { |
|
173 STATIC_CAST(TUint, -864) |
|
174 } |
|
175 }, |
|
176 { |
|
177 0x040e, |
|
178 0x044f, |
|
179 SCnvConversionData::SOneDirectionData::SRange::EOffset, |
|
180 1, |
|
181 0, |
|
182 { |
|
183 STATIC_CAST(TUint, -864) |
|
184 } |
|
185 }, |
|
186 { |
|
187 0x0451, |
|
188 0x045c, |
|
189 SCnvConversionData::SOneDirectionData::SRange::EOffset, |
|
190 1, |
|
191 0, |
|
192 { |
|
193 STATIC_CAST(TUint, -864) |
|
194 } |
|
195 }, |
|
196 { |
|
197 0x00a0, |
|
198 0x2116, |
|
199 SCnvConversionData::SOneDirectionData::SRange::EKeyedTable1616, |
|
200 1, |
|
201 0, |
|
202 { |
|
203 UData_SKeyedTable1616(keyedTable1616_unicodeToForeign_1) |
|
204 } |
|
205 } |
|
206 }; |
|
207 |
|
208 GLDEF_D const SCnvConversionData conversionData= |
|
209 { |
|
210 SCnvConversionData::EFixedBigEndian, |
|
211 { |
|
212 ARRAY_LENGTH(foreignVariableByteDataRanges), |
|
213 foreignVariableByteDataRanges |
|
214 }, |
|
215 { |
|
216 ARRAY_LENGTH(foreignToUnicodeDataRanges), |
|
217 foreignToUnicodeDataRanges |
|
218 }, |
|
219 { |
|
220 ARRAY_LENGTH(unicodeToForeignDataRanges), |
|
221 unicodeToForeignDataRanges |
|
222 }, |
|
223 NULL, |
|
224 NULL |
|
225 }; |
|
226 |