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