locales/loce32/src/ls_colgre.cpp
author andy simpson <andrews@symbian.org>
Thu, 02 Sep 2010 17:15:02 +0100
branchRCL_3
changeset 108 73fa3ba3e5e0
parent 0 05e9090e2422
permissions -rw-r--r--
Merge after removal of incorrect RCL_3 drop

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


#include <kernel/ls_std.h>
#include <collate.h>

const TUint KUidColgreCollationMethod = 0x100059DD;

static const TUint32 TheColgreKey[] = 
	{
	0x2b0b,0x6cf1309,0x6cf1321,0x71e1309,0x71e1321,0x7751309,0x7751321,0x78e1309,
	0x78e1321,0x78e2809,0x78e2821,0x78e2a21,0x8051309,0x8051321,0x8bd2809,0x8bd2821,
	0x8bd1309,0x8bd1321,0x8bd2a21,0x8c91309,0x8c91321,0x130b,0x280b,0x6cf0109,
	0x6cf0121,0x6d00109,0x6d00121,0x6e30109,0x6e30121,0x6e40109,0x6e40121,0x7030109,
	0x7030121,0x7040121,0x7040109,0x7050109,0x7050121,0x7060121,0x7060109,0x71e0109,
	0x71e0121,0x7730109,0x7730121,0x7732109,0x7732121,0x7740109,0x7740121,0x7760109,
	0x7760121,0x78d0109,0x78d0121,0x78e0109,0x78e0121,0x78f0109,0x78f0121,0x7b10109,
	0x7b10121,0x7b20109,0x7b20121,0x7b30109,0x7b30121,0x7e40109,0x7e40121,0x7ec0109,
	0x7ec0121,0x8040109,0x8040121,0x8050109,0x8050121,0x8060109,0x8060121,0x81d0109,
	0x81d0121,0x8200109,0x8200121,0x8350109,0x8350121,0x8360109,0x8360121,0x85d0109,
	0x85d0121,0x8600109,0x8600121,0x8750109,0x8750121,0x8760109,0x8760121,0x8bd0109,
	0x8bd0121,0x8c00109,0x8c00121,0x8c10109,0x8c10121,0x8c20109,0x8c20121,0x8c30109,
	0x8c30121,0x8c40109,0x8c40121,0x8c60109,0x8c60121,0x8c90109,0x8c90121,
	};

static const TUint32 TheColgreIndex[] = 
	{
	0x410019,0x42001d,0x440026,0x46005d,0x470022,0x48002f,0x490035,0x4b0039,
	0x4f0045,0x500049,0x52004d,0x530051,0x540055,0x580061,0x590059,0x5a002b,
	0x61001a,0x62001e,0x640025,0x66005e,0x670021,0x680030,0x690036,0x6b003a,
	0x6f0046,0x70004a,0x72004e,0x730052,0x740056,0x780062,0x79005a,0x7a002c,
	0x3010016,0x3080015,0x3910017,0x392001b,0x393001f,0x3940023,0x3950027,0x3960029,
	0x397002d,0x3980031,0x3990033,0x39a0037,0x39b003b,0x39c003d,0x39d003f,0x39e0041,
	0x39f0043,0x3a00047,0x3a1004b,0x3a3004f,0x3a40053,0x3a50057,0x3a6005b,0x3a7005f,
	0x3a80063,0x3a90065,0x3b10018,0x3b2001c,0x3b30020,0x3b40024,0x3b50028,0x3b6002a,
	0x3b7002e,0x3b80032,0x3b90034,0x3ba0038,0x3bb003c,0x3bc003e,0x3bd0040,0x3be0042,
	0x3bf0044,0x3c00048,0x3c1004c,0x3c20050,0x3c30050,0x3c40054,0x3c50058,0x3c6005c,
	0x3c70060,0x3c80064,0x3c90066,
	};

static const TUint16 TheColgreStringElement[] = 
	{
	0x2,0x308,0x301,0x2,0x391,0x301,0x2,0x3b1,
	0x301,0x2,0x395,0x301,0x2,0x3b5,0x301,0x2,
	0x397,0x301,0x2,0x3b7,0x301,0x2,0x399,0x301,
	0x2,0x3b9,0x301,0x2,0x399,0x308,0x2,0x3b9,
	0x308,0x3,0x3b9,0x308,0x301,0x2,0x39f,0x301,
	0x2,0x3bf,0x301,0x2,0x3a5,0x308,0x2,0x3c5,
	0x308,0x2,0x3a5,0x301,0x2,0x3c5,0x301,0x3,
	0x3c5,0x308,0x301,0x2,0x3a9,0x301,0x2,0x3c9,
	0x301,
	};

static const TUint32 TheColgreStringIndex[] = 
	{
	0x0,0x30001,0x90003,0xf0005,0x150007,0x1b0009,0x25000c,0x310010,
	0x2b000e,0x3b0013,0x60002,0xc0004,0x120006,0x180008,0x1e000a,0x21000b,
	0x28000d,0x340011,0x2e000f,0x370012,0x3e0014,
	};

static const TCollationKeyTable TheColgreTable = 
	{ TheColgreKey, TheColgreIndex, 83, TheColgreStringElement, TheColgreStringIndex, 21 };

static const TCollationMethod TheCollationMethod[] = 
	{
		{
		KUidColgreCollationMethod, // the method for the locale
		NULL, // use the standard table as the main table
		&TheColgreTable, // the locale values override the standard values
		0 // the flags are standard
		},
		{
		KUidBasicCollationMethod, // the standard unlocalised method
		NULL, // null means use the standard table
		NULL, // there's no override table
		0 // the flags are standard
		}
	};

static const TCollationDataSet TheCollationDataSet =
	{
	TheCollationMethod,
	2
	};

// The one and only locale character set object.
const LCharSet TheCharSet =
	{
	NULL,
	&TheCollationDataSet
	};