16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include <kernel/ls_std.h> |
19 #include <kernel/ls_std.h> |
20 #include <collate.h> |
20 #include <collate.h> |
21 #include <unicode.h> |
|
22 |
21 |
23 const TUint KUidColturCollationMethod = 0x100059DD; |
22 const TUint KUidColturCollationMethod = 0x100059DD; |
24 |
23 |
25 static const TUint32 TheColturKey[] = |
24 static const TUint32 TheColturKey[] = |
26 { |
25 { |
27 0x7540109,0x7540121,0x78d0121,0x8060109,0x8060121,0x85e0109,0x85e0121,0x88e0109, |
26 0x7540109,0x7540121,0x78e0121,0x8060109,0x8060121,0x85e0109,0x85e0121,0x88e0109, |
28 0x88e0121,0x78d0109, |
27 0x88e0121,0x78e0109,0x78d0121,0x78d0109, |
29 }; |
28 }; |
30 |
29 |
31 static const TUint32 TheColturIndex[] = |
30 static const TUint32 TheColturIndex[] = |
32 { |
31 { |
33 0x490002,0x690009,0x1310009, |
32 0x49000a,0x69000b,0x1310009, |
34 }; |
33 }; |
35 |
34 |
36 static const TUint16 TheColturStringElement[] = |
35 static const TUint16 TheColturStringElement[] = |
37 { |
36 { |
38 0x2,0x67,0x306,0x2,0x47,0x306,0x2,0x49, |
37 0x2,0x67,0x306,0x2,0x47,0x306,0x2,0x49, |
70 { |
69 { |
71 TheCollationMethod, |
70 TheCollationMethod, |
72 2 |
71 2 |
73 }; |
72 }; |
74 |
73 |
75 static const TUnicodeData TheUnicodeTurkishData[] = // property table |
|
76 { |
|
77 { 0, 0, 0, 0, 232, 1 } // character properties. See the definition of TUnicodeData in /include/unicode.h. |
|
78 }; |
|
79 static const TUnicodeDataRange TheUnicodeTurkishDataRange[] = // character range table |
|
80 { |
|
81 // This table defines only one character 0x49. |
|
82 { 0x0, -1 }, // characters 0x0-0x48 has index=-1 into above property table (-1 means not defined) |
|
83 { 0x49, 0 }, // characters 0x49-0x49 has index=0 into above property table, that is, 0x49 has property {0,0,0,0,232,1} |
|
84 { 0x4A, -1 } // characters 0x4A-0x10FFFF has index=-1 into above property table (-1 means not defined) |
|
85 }; |
|
86 const TUnicodeDataSet TheUnicodeTurkishDataSet = |
|
87 { |
|
88 TheUnicodeTurkishData, // address of above property table |
|
89 TheUnicodeTurkishDataRange, // character range table |
|
90 sizeof(TheUnicodeTurkishDataRange)/sizeof(TUnicodeDataRange) // character range table size (should be 3 in this case) |
|
91 }; |
|
92 |
|
93 // The one and only locale character set object. |
74 // The one and only locale character set object. |
94 const LCharSet TheCharSet = |
75 const LCharSet TheCharSet = |
95 { |
76 { |
96 &TheUnicodeTurkishDataSet, |
77 NULL, |
97 &TheCollationDataSet |
78 &TheCollationDataSet |
98 }; |
79 }; |