locales/loce32/collation/src/collation_cs.cpp
changeset 53 8f0f421d3d0f
equal deleted inserted replaced
50:c6286dcf6040 53:8f0f421d3d0f
       
     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 KUidColczeCollationMethod = 0x100059DD;
       
    23 
       
    24 static const TUint32 TheColczeKey[] = 
       
    25 	{
       
    26 	0x6f80109,0x6f80121,0x7740109,0x7740109,0x7740121,0x7740121,0x8360109,0x8360121,
       
    27 	0x85e0109,0x85e0121,0x8ca0109,0x8ca0121,
       
    28 	};
       
    29 
       
    30 static const TUint16 TheColczeStringElement[] = 
       
    31 	{
       
    32 	0x2,0x63,0x30c,0x2,0x43,0x30c,0x2,0x63,
       
    33 	0x68,0x2,0x63,0x48,0x2,0x43,0x68,0x2,
       
    34 	0x43,0x48,0x2,0x72,0x30c,0x2,0x52,0x30c,
       
    35 	0x2,0x73,0x30c,0x2,0x53,0x30c,0x2,0x7a,
       
    36 	0x30c,0x2,0x5a,0x30c,
       
    37 	};
       
    38 
       
    39 static const TUint32 TheColczeStringIndex[] = 
       
    40 	{
       
    41 	0xf0005,0xc0004,0x30001,0x150007,0x1b0009,0x21000b,0x90003,0x60002,
       
    42 	0x0,0x120006,0x180008,0x1e000a,
       
    43 	};
       
    44 
       
    45 static const TCollationKeyTable TheColczeTable = 
       
    46 	{ TheColczeKey, 0, 0, TheColczeStringElement, TheColczeStringIndex, 12 };
       
    47 
       
    48 static const TCollationMethod TheCollationMethod[] = 
       
    49 	{
       
    50 		{
       
    51 		KUidColczeCollationMethod, // the method for the locale
       
    52 		NULL, // use the standard table as the main table
       
    53 		&TheColczeTable, // the locale values override the standard values
       
    54 		0 // the flags are standard
       
    55 		},
       
    56 		{
       
    57 		KUidBasicCollationMethod, // the standard unlocalised method
       
    58 		NULL, // null means use the standard table
       
    59 		NULL, // there's no override table
       
    60 		0 // the flags are standard
       
    61 		}
       
    62 	};
       
    63 
       
    64 static const TCollationDataSet TheCollationDataSet =
       
    65 	{
       
    66 	TheCollationMethod,
       
    67 	2
       
    68 	};
       
    69 
       
    70 // The one and only locale character set object.
       
    71 const LCharSet TheCharSet =
       
    72 	{
       
    73 	NULL,
       
    74 	&TheCollationDataSet
       
    75 	};