|
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 KUidColromCollationMethod = 0x100059DD; |
|
23 |
|
24 static const TUint32 TheColromKey[] = |
|
25 { |
|
26 0x6d01809,0x6d01821,0x6d11d09,0x6d11d21,0x78e1d09,0x78e1d21,0x85e3609,0x85e3621, |
|
27 0x85f0115,0x85f0115,0x8763609,0x8763621,0x8770115,0x8770115,0x8ca3309,0x8ca3321, |
|
28 0x7040109,0x7040121, |
|
29 }; |
|
30 |
|
31 static const TUint32 TheColromIndex[] = |
|
32 { |
|
33 0x1100011,0x1110010, |
|
34 }; |
|
35 |
|
36 static const TUint16 TheColromStringElement[] = |
|
37 { |
|
38 0x2,0x61,0x306,0x2,0x41,0x306,0x2,0x61, |
|
39 0x302,0x2,0x41,0x302,0x2,0x69,0x302,0x2, |
|
40 0x49,0x302,0x2,0x73,0x327,0x2,0x53,0x327, |
|
41 0x2,0x73,0x329,0x2,0x53,0x329,0x2,0x74, |
|
42 0x327,0x2,0x54,0x327,0x2,0x74,0x329,0x2, |
|
43 0x54,0x329,0x2,0x7a,0x307,0x2,0x5a,0x307, |
|
44 }; |
|
45 |
|
46 static const TUint32 TheColromStringIndex[] = |
|
47 { |
|
48 0x90003,0x30001,0xf0005,0x150007,0x1b0009,0x21000b,0x27000d,0x2d000f, |
|
49 0x60002,0x0,0xc0004,0x120006,0x180008,0x1e000a,0x24000c,0x2a000e, |
|
50 }; |
|
51 |
|
52 static const TCollationKeyTable TheColromTable = |
|
53 { TheColromKey, TheColromIndex, 2, TheColromStringElement, TheColromStringIndex, 16 }; |
|
54 |
|
55 static const TCollationMethod TheCollationMethod[] = |
|
56 { |
|
57 { |
|
58 KUidColromCollationMethod, // the method for the locale |
|
59 NULL, // use the standard table as the main table |
|
60 &TheColromTable, // the locale values override the standard values |
|
61 0 // the flags are standard |
|
62 }, |
|
63 { |
|
64 KUidBasicCollationMethod, // the standard unlocalised method |
|
65 NULL, // null means use the standard table |
|
66 NULL, // there's no override table |
|
67 0 // the flags are standard |
|
68 } |
|
69 }; |
|
70 |
|
71 static const TCollationDataSet TheCollationDataSet = |
|
72 { |
|
73 TheCollationMethod, |
|
74 2 |
|
75 }; |
|
76 |
|
77 // The one and only locale character set object. |
|
78 const LCharSet TheCharSet = |
|
79 { |
|
80 NULL, |
|
81 &TheCollationDataSet |
|
82 }; |