|
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 const TUint KUidColslvCollationMethod = 0x100059DD; |
|
23 |
|
24 static const TUint32 TheColslvKey[] = |
|
25 { |
|
26 0x6f82209,0x6f82221,0x6f91309,0x6f91321,0x85e2209,0x85e2221,0x8ca2209,0x8ca2221, |
|
27 }; |
|
28 |
|
29 static const TUint16 TheColslvStringElement[] = |
|
30 { |
|
31 0x2,0x63,0x30c,0x2,0x43,0x30c,0x2,0x63, |
|
32 0x301,0x2,0x43,0x301,0x2,0x73,0x30c,0x2, |
|
33 0x53,0x30c,0x2,0x7a,0x30c,0x2,0x5a,0x30c, |
|
34 }; |
|
35 |
|
36 static const TUint32 TheColslvStringIndex[] = |
|
37 { |
|
38 0x90003,0x30001,0xf0005,0x150007,0x60002,0x0,0xc0004,0x120006, |
|
39 }; |
|
40 |
|
41 static const TCollationKeyTable TheColslvTable = |
|
42 { TheColslvKey, 0, 0, TheColslvStringElement, TheColslvStringIndex, 8 }; |
|
43 |
|
44 static const TCollationMethod TheCollationMethod[] = |
|
45 { |
|
46 { |
|
47 KUidColslvCollationMethod, // the method for the locale |
|
48 NULL, // use the standard table as the main table |
|
49 &TheColslvTable, // the locale values override the standard values |
|
50 0 // the flags are standard |
|
51 }, |
|
52 { |
|
53 KUidBasicCollationMethod, // the standard unlocalised method |
|
54 NULL, // null means use the standard table |
|
55 NULL, // there's no override table |
|
56 0 // the flags are standard |
|
57 } |
|
58 }; |
|
59 |
|
60 static const TCollationDataSet TheCollationDataSet = |
|
61 { |
|
62 TheCollationMethod, |
|
63 2 |
|
64 }; |
|
65 |
|
66 // The one and only locale character set object. |
|
67 const LCharSet TheCharSet = |
|
68 { |
|
69 NULL, |
|
70 &TheCollationDataSet |
|
71 }; |