equal
deleted
inserted
replaced
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> |
21 |
22 |
22 const TUint KUidColturCollationMethod = 0x100059DD; |
23 const TUint KUidColturCollationMethod = 0x100059DD; |
23 |
24 |
24 static const TUint32 TheColturKey[] = |
25 static const TUint32 TheColturKey[] = |
25 { |
26 { |
69 { |
70 { |
70 TheCollationMethod, |
71 TheCollationMethod, |
71 2 |
72 2 |
72 }; |
73 }; |
73 |
74 |
|
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 |
74 // The one and only locale character set object. |
93 // The one and only locale character set object. |
75 const LCharSet TheCharSet = |
94 const LCharSet TheCharSet = |
76 { |
95 { |
77 NULL, |
96 &TheUnicodeTurkishDataSet, |
78 &TheCollationDataSet |
97 &TheCollationDataSet |
79 }; |
98 }; |