locales/loce32/src/ls_colpol.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 KUidColpolCollationMethod = 0x100059DD;
       
    23 
       
    24 static const TUint32 TheColpolKey[] = 
       
    25 	{
       
    26 	0x6d03909,0x6d03921,0x6f81309,0x6f81321,0x7203909,0x7203921,0x7ee1309,0x7ee1321,
       
    27 	0x8061309,0x8061321,0x85e1309,0x85e1321,0x8ca1309,0x8ca1321,0x8cb3309,0x8cb3321,
       
    28 	};
       
    29 
       
    30 static const TUint16 TheColpolStringElement[] = 
       
    31 	{
       
    32 	0x2,0x61,0x328,0x2,0x41,0x328,0x2,0x63,
       
    33 	0x301,0x2,0x43,0x301,0x2,0x65,0x328,0x2,
       
    34 	0x45,0x328,0x2,0x6e,0x301,0x2,0x4e,0x301,
       
    35 	0x2,0x6f,0x301,0x2,0x4f,0x301,0x2,0x73,
       
    36 	0x301,0x2,0x53,0x301,0x2,0x7a,0x301,0x2,
       
    37 	0x5a,0x301,0x2,0x7a,0x307,0x2,0x5a,0x307,
       
    38 	};
       
    39 
       
    40 static const TUint32 TheColpolStringIndex[] = 
       
    41 	{
       
    42 	0x30001,0x90003,0xf0005,0x150007,0x1b0009,0x21000b,0x27000d,0x2d000f,
       
    43 	0x0,0x60002,0xc0004,0x120006,0x180008,0x1e000a,0x24000c,0x2a000e,
       
    44 	};
       
    45 
       
    46 static const TCollationKeyTable TheColpolTable = 
       
    47 	{ TheColpolKey, 0, 0, TheColpolStringElement, TheColpolStringIndex, 16 };
       
    48 
       
    49 static const TCollationMethod TheCollationMethod[] = 
       
    50 	{
       
    51 		{
       
    52 		KUidColpolCollationMethod, // the method for the locale
       
    53 		NULL, // use the standard table as the main table
       
    54 		&TheColpolTable, // the locale values override the standard values
       
    55 		0 // the flags are standard
       
    56 		},
       
    57 		{
       
    58 		KUidBasicCollationMethod, // the standard unlocalised method
       
    59 		NULL, // null means use the standard table
       
    60 		NULL, // there's no override table
       
    61 		0 // the flags are standard
       
    62 		}
       
    63 	};
       
    64 
       
    65 static const TCollationDataSet TheCollationDataSet =
       
    66 	{
       
    67 	TheCollationMethod,
       
    68 	2
       
    69 	};
       
    70 
       
    71 // The one and only locale character set object.
       
    72 const LCharSet TheCharSet =
       
    73 	{
       
    74 	NULL,
       
    75 	&TheCollationDataSet
       
    76 	};