|
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 <kernel/ls_std.h> |
|
20 #include <collate.h> |
|
21 |
|
22 // Added by SortAndMatch 13.06.2006 |
|
23 #include "lx_sort_vie_VN.cpp" |
|
24 |
|
25 const TUint KUidMatch_vie_vnCollationMethod = 0x100059DD; |
|
26 |
|
27 static const TUint32 TheMatch_vie_vnKey[] = |
|
28 { |
|
29 0x6cf1309,0x6cf1321,0x6cf1309,0x6cf1321,0x6cf1609,0x6cf1621,0x6cf3009,0x6cf3021, |
|
30 0x6cf4009,0x6cf4021,0x6cf5909,0x6cf5921,0x6cf0109,0x6cf0121,0x6cf1309,0x6cf1321, |
|
31 0x6cf1609,0x6cf1621,0x6cf3009,0x6cf3021,0x6cf4009,0x6cf4021,0x6cf5909,0x6cf5921, |
|
32 0x6cf0109,0x6cf0121,0x6cf1309,0x6cf1321,0x6cf1609,0x6cf1621,0x6cf3009,0x6cf3021, |
|
33 0x6cf4009,0x6cf4021,0x6cf5909,0x6cf5921,0x71f1309,0x71f1321,0x71f1609,0x71f1621, |
|
34 0x71f3009,0x71f3021,0x71f4009,0x71f4021,0x71f5909,0x71f5921,0x71f0109,0x71f0121, |
|
35 0x71f1309,0x71f1321,0x71f1609,0x71f1621,0x71f3009,0x71f3021,0x71f4009,0x71f4021, |
|
36 0x71f5909,0x71f5921,0x78d1309,0x78d1321,0x78d1609,0x78d1621,0x78d3009,0x78d3021, |
|
37 0x78d4009,0x78d4021,0x78d5909,0x78d5921,0x8050109,0x8050121,0x8051309,0x8051321, |
|
38 0x8051609,0x8051621,0x8053009,0x8053021,0x8054009,0x8054021,0x8055909,0x8055921, |
|
39 0x8051309,0x8051321,0x8051609,0x8051621,0x8053009,0x8053021,0x8054009,0x8054021, |
|
40 0x8055909,0x8055921,0x8050109,0x8050121,0x8051309,0x8051321,0x8051609,0x8051621, |
|
41 0x8053009,0x8053021,0x8054009,0x8054021,0x8055909,0x8055921,0x88d1309,0x88d1321, |
|
42 0x88d1609,0x88d1621,0x88d3009,0x88d3021,0x88d4009,0x88d4021,0x88d5909,0x88d5921, |
|
43 0x88d0109,0x88d0121,0x88d1309,0x88d1321,0x88d1609,0x88d1621,0x88d3009,0x88d3021, |
|
44 0x88d4009,0x88d4021,0x88d5909,0x88d5921,0x8bd1309,0x8bd1321,0x8bd1609,0x8bd1621, |
|
45 0x8bd3009,0x8bd3021,0x8bd4009,0x8bd4021,0x8bd5909,0x8bd5921, |
|
46 }; |
|
47 |
|
48 static const TUint16 TheMatch_vie_vnStringElement[] = |
|
49 { |
|
50 0x2,0x61,0x300,0x2,0x41,0x300,0x2,0x61, |
|
51 0x2cb,0x2,0x41,0x2cb,0x2,0x61,0x309,0x2, |
|
52 0x41,0x309,0x2,0x61,0x303,0x2,0x41,0x303, |
|
53 0x2,0x61,0x301,0x2,0x41,0x301,0x2,0x61, |
|
54 0x323,0x2,0x41,0x323,0x2,0x61,0x306,0x2, |
|
55 0x41,0x306,0x3,0x61,0x300,0x306,0x3,0x41, |
|
56 0x300,0x306,0x3,0x61,0x306,0x309,0x3,0x41, |
|
57 0x306,0x309,0x3,0x61,0x303,0x306,0x3,0x41, |
|
58 0x303,0x306,0x3,0x61,0x301,0x306,0x3,0x41, |
|
59 0x301,0x306,0x3,0x61,0x323,0x306,0x3,0x41, |
|
60 0x323,0x306,0x2,0x61,0x302,0x2,0x41,0x302, |
|
61 0x3,0x61,0x300,0x302,0x3,0x41,0x300,0x302, |
|
62 0x3,0x61,0x302,0x309,0x3,0x41,0x302,0x309, |
|
63 0x3,0x61,0x303,0x302,0x3,0x41,0x303,0x302, |
|
64 0x3,0x61,0x301,0x302,0x3,0x41,0x301,0x302, |
|
65 0x3,0x61,0x323,0x302,0x3,0x41,0x323,0x302, |
|
66 0x2,0x65,0x300,0x2,0x45,0x300,0x2,0x65, |
|
67 0x309,0x2,0x45,0x309,0x2,0x65,0x303,0x2, |
|
68 0x45,0x303,0x2,0x65,0x301,0x2,0x45,0x301, |
|
69 0x2,0x65,0x323,0x2,0x45,0x323,0x2,0x65, |
|
70 0x302,0x2,0x45,0x302,0x3,0x65,0x300,0x302, |
|
71 0x3,0x45,0x300,0x302,0x3,0x65,0x302,0x309, |
|
72 0x3,0x45,0x302,0x309,0x3,0x65,0x303,0x302, |
|
73 0x3,0x45,0x303,0x302,0x3,0x65,0x301,0x302, |
|
74 0x3,0x45,0x301,0x302,0x3,0x65,0x323,0x302, |
|
75 0x3,0x45,0x323,0x302,0x2,0x69,0x300,0x2, |
|
76 0x49,0x300,0x2,0x69,0x309,0x2,0x49,0x309, |
|
77 0x2,0x69,0x303,0x2,0x49,0x303,0x2,0x69, |
|
78 0x301,0x2,0x49,0x301,0x2,0x69,0x323,0x2, |
|
79 0x49,0x323,0x2,0x6f,0x302,0x2,0x4f,0x302, |
|
80 0x3,0x6f,0x300,0x302,0x3,0x4f,0x300,0x302, |
|
81 0x3,0x6f,0x302,0x309,0x3,0x4f,0x302,0x309, |
|
82 0x3,0x6f,0x303,0x302,0x3,0x4f,0x303,0x302, |
|
83 0x3,0x6f,0x301,0x302,0x3,0x4f,0x301,0x302, |
|
84 0x3,0x6f,0x323,0x302,0x3,0x4f,0x323,0x302, |
|
85 0x2,0x6f,0x300,0x2,0x4f,0x300,0x2,0x6f, |
|
86 0x309,0x2,0x4f,0x309,0x2,0x6f,0x303,0x2, |
|
87 0x4f,0x303,0x2,0x6f,0x301,0x2,0x4f,0x301, |
|
88 0x2,0x6f,0x323,0x2,0x4f,0x323,0x2,0x6f, |
|
89 0x31b,0x2,0x4f,0x31b,0x3,0x6f,0x300,0x31b, |
|
90 0x3,0x4f,0x300,0x31b,0x3,0x6f,0x31b,0x309, |
|
91 0x3,0x4f,0x31b,0x309,0x3,0x6f,0x303,0x31b, |
|
92 0x3,0x4f,0x303,0x31b,0x3,0x6f,0x301,0x31b, |
|
93 0x3,0x4f,0x301,0x31b,0x3,0x6f,0x31b,0x323, |
|
94 0x3,0x4f,0x31b,0x323,0x2,0x75,0x300,0x2, |
|
95 0x55,0x300,0x2,0x75,0x309,0x2,0x55,0x309, |
|
96 0x2,0x75,0x303,0x2,0x55,0x303,0x2,0x75, |
|
97 0x301,0x2,0x55,0x301,0x2,0x75,0x323,0x2, |
|
98 0x55,0x323,0x2,0x75,0x31b,0x2,0x55,0x31b, |
|
99 0x3,0x75,0x300,0x31b,0x3,0x55,0x300,0x31b, |
|
100 0x3,0x75,0x31b,0x309,0x3,0x55,0x31b,0x309, |
|
101 0x3,0x75,0x303,0x31b,0x3,0x55,0x303,0x31b, |
|
102 0x3,0x75,0x301,0x31b,0x3,0x55,0x301,0x31b, |
|
103 0x3,0x75,0x31b,0x323,0x3,0x55,0x31b,0x323, |
|
104 0x2,0x79,0x300,0x2,0x59,0x300,0x2,0x79, |
|
105 0x309,0x2,0x59,0x309,0x2,0x79,0x303,0x2, |
|
106 0x59,0x303,0x2,0x79,0x301,0x2,0x59,0x301, |
|
107 0x2,0x79,0x323,0x2,0x59,0x323, |
|
108 }; |
|
109 |
|
110 static const TUint32 TheMatch_vie_vnStringIndex[] = |
|
111 { |
|
112 0x90003,0x30001,0x5c001b,0x2e000f,0x1b0009,0x740021,0x460015,0x550019, |
|
113 0x64001d,0x150007,0x6c001f,0x3e0013,0x27000d,0x360011,0xf0005,0x21000b, |
|
114 0x7c0023,0x4e0017,0x830025,0xa80031,0x95002b,0xc00037,0xa1002f,0xb00033, |
|
115 0x8f0029,0xb80035,0x890027,0x9b002d,0xc80039,0xcf003b,0xe10041,0xdb003f, |
|
116 0xd5003d,0xe70043,0x11b0051,0xf40047,0x140005d,0x12d0057,0x10c004d,0x1580063, |
|
117 0xed0045,0xfc0049,0x1270055,0x104004b,0x1500061,0x1210053,0x139005b,0x148005f, |
|
118 0x1600065,0x1330059,0x114004f,0x1670067,0x18c0073,0x179006d,0x1a40079,0x173006b, |
|
119 0x19c0077,0x16d0069,0x1850071,0x1940075,0x1ac007b,0x17f006f,0x1b3007d,0x1c50083, |
|
120 0x1bf0081,0x1b9007f,0x1cb0085,0x60002,0x0,0x58001a,0x2a000e,0x180008, |
|
121 0x700020,0x420014,0x520018,0x60001c,0x120006,0x68001e,0x3a0012,0x24000c, |
|
122 0x320010,0xc0004,0x1e000a,0x780022,0x4a0016,0x800024,0xa40030,0x92002a, |
|
123 0xbc0036,0x9e002e,0xac0032,0x8c0028,0xb40034,0x860026,0x98002c,0xc40038, |
|
124 0xcc003a,0xde0040,0xd8003e,0xd2003c,0xe40042,0x1180050,0xf00046,0x13c005c, |
|
125 0x12a0056,0x108004c,0x1540062,0xea0044,0xf80048,0x1240054,0x100004a,0x14c0060, |
|
126 0x11e0052,0x136005a,0x144005e,0x15c0064,0x1300058,0x110004e,0x1640066,0x1880072, |
|
127 0x176006c,0x1a00078,0x170006a,0x1980076,0x16a0068,0x1820070,0x1900074,0x1a8007a, |
|
128 0x17c006e,0x1b0007c,0x1c20082,0x1bc0080,0x1b6007e,0x1c80084, |
|
129 }; |
|
130 |
|
131 static const TCollationKeyTable TheMatch_vie_vnTable = |
|
132 { TheMatch_vie_vnKey, 0, 0, TheMatch_vie_vnStringElement, TheMatch_vie_vnStringIndex, 134 }; |
|
133 |
|
134 static const TCollationMethod TheCollationMethod[] = |
|
135 { |
|
136 // Added by SortAndMatch 13.06.2006 |
|
137 { |
|
138 KUidSort_vie_vnCollationMethod, // the method for the locale |
|
139 NULL, // use the standard table as the main table |
|
140 &TheSort_vie_vnTable, // the locale values override the standard values |
|
141 0 // the flags are standard |
|
142 }, |
|
143 // End of addition 13.06.2006 |
|
144 { |
|
145 KUidMatch_vie_vnCollationMethod, // the method for the locale |
|
146 NULL, // use the standard table as the main table |
|
147 &TheMatch_vie_vnTable, // the locale values override the standard values |
|
148 TCollationMethod:: EMatchingTable// Switched to the Match flag by SortAndMatch 13.06.2006 |
|
149 }, |
|
150 { |
|
151 KUidBasicCollationMethod, // the standard unlocalised method |
|
152 NULL, // null means use the standard table |
|
153 NULL, // there's no override table |
|
154 0 // the flags are standard |
|
155 } |
|
156 }; |
|
157 |
|
158 static const TCollationDataSet TheCollationDataSet = |
|
159 { |
|
160 TheCollationMethod, |
|
161 3 // Changed to 3 from 2 by SortAndMatch 13.06.2006 |
|
162 }; |
|
163 |
|
164 // The one and only locale character set object. |
|
165 const LCharSet TheCharSet = |
|
166 { |
|
167 NULL, |
|
168 &TheCollationDataSet |
|
169 }; |