locales/loce32/src/ls_colukr.cpp
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     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 KUidColukrCollationMethod = 0x100059DD;
       
    23 
       
    24 static const TUint32 TheColukrKey[] = 
       
    25 	{
       
    26 	0x9ab2809,0x9ab2821,0x9ac1809,0x9ac1821,0xa9b0109,0xa9b0121,0xa9be109,0xa9be121,
       
    27 	0xa9c0109,0xa9c0121,0xa9d0109,0xa9d0121,0xa9e0109,0xa9e0121,0xa9f0109,0xa9f0121,
       
    28 	0xaa00109,0xaa00121,0xaa10109,0xaa10121,0xaa20109,0xaa20121,0xaa30109,0xaa30121,
       
    29 	0xaa40109,0xaa40121,0xaa50109,0xaa50121,0xaa60109,0xaa60121,0xaa70109,0xaa70121,
       
    30 	0xaa80109,0xaa80121,0xaa90109,0xaa90121,0xaaa0109,0xaaa0121,0xaab0109,0xaab0121,
       
    31 	0xaac0109,0xaac0121,0xaad0109,0xaad0121,0xaae0109,0xaaf0109,0xaaf0121,0xab00109,
       
    32 	0xab00121,0xab10109,0xab10121,0xab20109,0xab20121,0xab30109,0xab30121,0xab40109,
       
    33 	0xab40121,0xab50109,0xab50121,
       
    34 	};
       
    35 
       
    36 static const TUint32 TheColukrIndex[] = 
       
    37 	{
       
    38 	0x410005,0x420009,0x43000b,0x44000d,0x45000f,0x460011,0x470013,0x480015,
       
    39 	0x490017,0x4a0019,0x4b001b,0x4c001d,0x4d001f,0x4e0021,0x4f0023,0x500025,
       
    40 	0x510027,0x520029,0x53002b,0x54002e,0x550030,0x560032,0x570034,0x580036,
       
    41 	0x590038,0x5a003a,0x610004,0x620008,0x63000a,0x64000c,0x65000e,0x660010,
       
    42 	0x670012,0x680014,0x690016,0x6a0018,0x6b001a,0x6c001c,0x6d001e,0x6e0020,
       
    43 	0x6f0022,0x700024,0x710026,0x720028,0x73002a,0x74002d,0x75002f,0x760031,
       
    44 	0x770033,0x780035,0x790037,0x7a0039,0xc60007,0xdf002c,0xe60006,
       
    45 	};
       
    46 
       
    47 static const TUint16 TheColukrStringElement[] = 
       
    48 	{
       
    49 	0x2,0x456,0x308,0x2,0x406,0x308,0x2,0x438,
       
    50 	0x306,0x2,0x418,0x306,
       
    51 	};
       
    52 
       
    53 static const TUint32 TheColukrStringIndex[] = 
       
    54 	{
       
    55 	0x30001,0x90003,0x60002,0x0,
       
    56 	};
       
    57 
       
    58 static const TCollationKeyTable TheColukrTable = 
       
    59 	{ TheColukrKey, TheColukrIndex, 55, TheColukrStringElement, TheColukrStringIndex, 4 };
       
    60 
       
    61 static const TCollationMethod TheCollationMethod[] = 
       
    62 	{
       
    63 		{
       
    64 		KUidColukrCollationMethod, // the method for the locale
       
    65 		NULL, // use the standard table as the main table
       
    66 		&TheColukrTable, // the locale values override the standard values
       
    67 		0 // the flags are standard
       
    68 		},
       
    69 		{
       
    70 		KUidBasicCollationMethod, // the standard unlocalised method
       
    71 		NULL, // null means use the standard table
       
    72 		NULL, // there's no override table
       
    73 		0 // the flags are standard
       
    74 		}
       
    75 	};
       
    76 
       
    77 static const TCollationDataSet TheCollationDataSet =
       
    78 	{
       
    79 	TheCollationMethod,
       
    80 	2
       
    81 	};
       
    82 
       
    83 // The one and only locale character set object.
       
    84 const LCharSet TheCharSet =
       
    85 	{
       
    86 	NULL,
       
    87 	&TheCollationDataSet
       
    88 	};