locales/loce32/src/ls_colsrp.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 KUidColsrpCollationMethod = 0x100059DD;
       
    23 
       
    24 static const TUint32 TheColsrpKey[] = 
       
    25 	{
       
    26 	0x6f82209,0x6f82221,0x6f91309,0x6f91321,0x7040109,0x7040121,0x7040121,0x7be0109,
       
    27 	0x7be0121,0x7be0121,0x7ee0109,0x7ee0121,0x7ee0121,0x85e2209,0x85e2221,0x8ca2209,
       
    28 	0x8ca2221,
       
    29 	};
       
    30 
       
    31 static const TUint16 TheColsrpStringElement[] = 
       
    32 	{
       
    33 	0x2,0x63,0x30c,0x2,0x43,0x30c,0x2,0x63,
       
    34 	0x301,0x2,0x43,0x301,0x2,0x64,0x17e,0x2,
       
    35 	0x44,0x17e,0x2,0x44,0x17d,0x2,0x6c,0x6a,
       
    36 	0x2,0x4c,0x6a,0x2,0x4c,0x4a,0x2,0x6e,
       
    37 	0x6a,0x2,0x4e,0x6a,0x2,0x4e,0x4a,0x2,
       
    38 	0x73,0x30c,0x2,0x53,0x30c,0x2,0x7a,0x30c,
       
    39 	0x2,0x5a,0x30c,
       
    40 	};
       
    41 
       
    42 static const TUint32 TheColsrpStringIndex[] = 
       
    43 	{
       
    44 	0x90003,0x30001,0x120006,0xf0005,0x1b0009,0x180008,0x24000c,0x21000b,
       
    45 	0x2a000e,0x300010,0x60002,0x0,0xc0004,0x150007,0x1e000a,0x27000d,
       
    46 	0x2d000f,
       
    47 	};
       
    48 
       
    49 static const TCollationKeyTable TheColsrpTable = 
       
    50 	{ TheColsrpKey, 0, 0, TheColsrpStringElement, TheColsrpStringIndex, 17 };
       
    51 
       
    52 static const TCollationMethod TheCollationMethod[] = 
       
    53 	{
       
    54 		{
       
    55 		KUidColsrpCollationMethod, // the method for the locale
       
    56 		NULL, // use the standard table as the main table
       
    57 		&TheColsrpTable, // the locale values override the standard values
       
    58 		0 // the flags are standard
       
    59 		},
       
    60 		{
       
    61 		KUidBasicCollationMethod, // the standard unlocalised method
       
    62 		NULL, // null means use the standard table
       
    63 		NULL, // there's no override table
       
    64 		0 // the flags are standard
       
    65 		}
       
    66 	};
       
    67 
       
    68 static const TCollationDataSet TheCollationDataSet =
       
    69 	{
       
    70 	TheCollationMethod,
       
    71 	2
       
    72 	};
       
    73 
       
    74 // The one and only locale character set object.
       
    75 const LCharSet TheCharSet =
       
    76 	{
       
    77 	NULL,
       
    78 	&TheCollationDataSet
       
    79 	};