sl@0: /* sl@0: * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: const TUint KUidTlocl_CollationMethod = 0x10888888; sl@0: const TUint KUidTlocl2_CollationMethod = 0x10999999; sl@0: sl@0: //Test locale table 1 sl@0: //Override A=B ; a=b sl@0: static const TUint32 TheTlocl_Key[] = sl@0: { sl@0: 0x6cf0109,0x6cf0121, sl@0: }; sl@0: sl@0: static const TUint32 TheTlocl_Index[] = sl@0: { sl@0: 0x420001,0x620000, sl@0: }; sl@0: sl@0: static const TCollationKeyTable TheTlocl_Table = sl@0: { TheTlocl_Key, TheTlocl_Index, 2, 0, 0, 0 }; sl@0: sl@0: //Test locale table 2 sl@0: //Override B>A ; b>a sl@0: static const TUint32 TheTlocl2_Key[] = sl@0: { sl@0: 0x6e30109,0x6cf0109,0x6cf0121,0x6e30121, sl@0: }; sl@0: sl@0: static const TUint32 TheTlocl2_Index[] = sl@0: { sl@0: 0x410003,0x420002,0x610000,0x620001, sl@0: }; sl@0: sl@0: static const TCollationKeyTable TheTlocl2_Table = sl@0: { TheTlocl2_Key, TheTlocl2_Index, 4, 0, 0, 0 }; sl@0: sl@0: //Test CollationMethod sl@0: static const TCollationMethod TheCollationMethod[] = sl@0: { sl@0: { sl@0: KUidTlocl2_CollationMethod, // the method for the locale sl@0: NULL, // use the standard table as the main table sl@0: &TheTlocl2_Table, // the locale values override the standard values sl@0: 0 // the flags are standard sl@0: }, sl@0: { sl@0: KUidBasicCollationMethod, // the standard unlocalised method sl@0: NULL, // null means use the standard table sl@0: NULL, // there's no override table sl@0: 0 // the flags are standard sl@0: }, sl@0: { sl@0: KUidTlocl_CollationMethod, // the method for the locale sl@0: NULL, // use the standard table as the main table sl@0: &TheTlocl_Table, // the locale values override the standard values sl@0: TCollationMethod::EMatchingTable // add matching flag here sl@0: } sl@0: }; sl@0: sl@0: static const TCollationDataSet TheCollationDataSet = sl@0: { sl@0: TheCollationMethod, sl@0: 3 sl@0: }; sl@0: sl@0: // The one and only locale character set object. sl@0: const LCharSet TheCharSet = sl@0: { sl@0: NULL, sl@0: &TheCollationDataSet sl@0: };