locales/loce32/src/ls_colslo.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 KUidColsloCollationMethod = 0x100059DD;
       
    23 
       
    24 static const TUint32 TheColsloKey[] = 
       
    25 	{
       
    26 	0x6d00109,0x6d00121,0x6f80109,0x6f80121,0x7740109,0x7740121,0x7740121,0x8060109,
       
    27 	0x8060121,0x8360109,0x8360121,0x85e0109,0x85e0121,0x8ca0109,0x8ca0121,0x8cb0109,
       
    28 	0x8cb0121,0x7080109,0x7080121,
       
    29 	};
       
    30 
       
    31 static const TUint32 TheColsloIndex[] = 
       
    32 	{
       
    33 	0x1100012,0x1110011,
       
    34 	};
       
    35 
       
    36 static const TUint16 TheColsloStringElement[] = 
       
    37 	{
       
    38 	0x2,0x61,0x308,0x2,0x41,0x308,0x2,0x63,
       
    39 	0x30c,0x2,0x43,0x30c,0x2,0x63,0x68,0x2,
       
    40 	0x43,0x68,0x2,0x43,0x48,0x2,0x6f,0x302,
       
    41 	0x2,0x4f,0x302,0x2,0x72,0x30c,0x2,0x52,
       
    42 	0x30c,0x2,0x73,0x30c,0x2,0x53,0x30c,0x2,
       
    43 	0x7a,0x30c,0x2,0x5a,0x30c,0x2,0x7a,0x307,
       
    44 	0x2,0x5a,0x307,
       
    45 	};
       
    46 
       
    47 static const TUint32 TheColsloStringIndex[] = 
       
    48 	{
       
    49 	0x30001,0x120006,0xf0005,0x90003,0x180008,0x1e000a,0x24000c,0x300010,
       
    50 	0x2a000e,0x0,0xc0004,0x60002,0x150007,0x1b0009,0x21000b,0x2d000f,
       
    51 	0x27000d,
       
    52 	};
       
    53 
       
    54 static const TCollationKeyTable TheColsloTable = 
       
    55 	{ TheColsloKey, TheColsloIndex, 2, TheColsloStringElement, TheColsloStringIndex, 17 };
       
    56 
       
    57 static const TCollationMethod TheCollationMethod[] = 
       
    58 	{
       
    59 		{
       
    60 		KUidColsloCollationMethod, // the method for the locale
       
    61 		NULL, // use the standard table as the main table
       
    62 		&TheColsloTable, // the locale values override the standard values
       
    63 		0 // the flags are standard
       
    64 		},
       
    65 		{
       
    66 		KUidBasicCollationMethod, // the standard unlocalised method
       
    67 		NULL, // null means use the standard table
       
    68 		NULL, // there's no override table
       
    69 		0 // the flags are standard
       
    70 		}
       
    71 	};
       
    72 
       
    73 static const TCollationDataSet TheCollationDataSet =
       
    74 	{
       
    75 	TheCollationMethod,
       
    76 	2
       
    77 	};
       
    78 
       
    79 // The one and only locale character set object.
       
    80 const LCharSet TheCharSet =
       
    81 	{
       
    82 	NULL,
       
    83 	&TheCollationDataSet
       
    84 	};