locales/loce32/src/ls_coltur.cpp
changeset 43 1951b3078691
parent 0 05e9090e2422
child 50 c6286dcf6040
--- a/locales/loce32/src/ls_coltur.cpp	Fri Mar 19 09:48:44 2010 +0200
+++ b/locales/loce32/src/ls_coltur.cpp	Fri Apr 16 16:01:57 2010 +0300
@@ -18,6 +18,7 @@
 
 #include <kernel/ls_std.h>
 #include <collate.h>
+#include <unicode.h>
 
 const TUint KUidColturCollationMethod = 0x100059DD;
 
@@ -71,9 +72,27 @@
 	2
 	};
 
+static const TUnicodeData TheUnicodeTurkishData[] =	// property table
+	{
+	{ 0, 0, 0, 0, 232, 1 }	// character properties. See the definition of TUnicodeData in /include/unicode.h.
+	};
+static const TUnicodeDataRange TheUnicodeTurkishDataRange[] =	// character range table
+	{
+// This table defines only one character 0x49.
+	{ 0x0, -1 },	// characters 0x0-0x48 has index=-1 into above property table (-1 means not defined)
+	{ 0x49, 0 },	// characters 0x49-0x49 has index=0 into above property table, that is, 0x49 has property {0,0,0,0,232,1}
+	{ 0x4A, -1 }	// characters 0x4A-0x10FFFF has index=-1 into above property table (-1 means not defined)
+	};
+const TUnicodeDataSet TheUnicodeTurkishDataSet =	
+	{
+	TheUnicodeTurkishData, 						// address of above property table
+	TheUnicodeTurkishDataRange, 					// character range table
+	sizeof(TheUnicodeTurkishDataRange)/sizeof(TUnicodeDataRange) 	// character range table size (should be 3 in this case)
+	};
+
 // The one and only locale character set object.
 const LCharSet TheCharSet =
 	{
-	NULL,
+	&TheUnicodeTurkishDataSet,
 	&TheCollationDataSet
 	};