fep/frontendprocessor/test/feps/TFEP4.CPP
branchRCL_3
changeset 44 ecbabf52600f
parent 43 ebd48d2de13c
equal deleted inserted replaced
43:ebd48d2de13c 44:ecbabf52600f
     1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1085 			case 'C':
  1085 			case 'C':
  1086 			case 'V':
  1086 			case 'V':
  1087 				{
  1087 				{
  1088 				//TTstArrayOfOneCtrlCharacter arrayOfOneCtrlCharacter(keyCodeInUpperCase-('A'-1)); // the TTstArrayOfOneCtrlCharacter object cannot be an anonymous (temporary) object as its lifetime must be guaranteed to last until iFep.SimulateKeyEventsL returns
  1088 				//TTstArrayOfOneCtrlCharacter arrayOfOneCtrlCharacter(keyCodeInUpperCase-('A'-1)); // the TTstArrayOfOneCtrlCharacter object cannot be an anonymous (temporary) object as its lifetime must be guaranteed to last until iFep.SimulateKeyEventsL returns
  1089                 //iFep.SimulateKeyEventsL(arrayOfOneCtrlCharacter.ArrayOfModifiedCharacters());
  1089                 //iFep.SimulateKeyEventsL(arrayOfOneCtrlCharacter.ArrayOfModifiedCharacters());
  1090 				const TInt numberOfCharacters = 7;
  1090 				const TInt numberOfCharacters = 11;
  1091 			    CArrayFix<TUint>* arrayOfCharacters=new(ELeave) CArrayFixFlat<TUint>(numberOfCharacters); // a RArray would be better than a CArrayFix, but unfortunately RArray doesn't (yet) have a TArray interface
  1091 			    CArrayFix<TUint>* arrayOfCharacters=new(ELeave) CArrayFixFlat<TUint>(numberOfCharacters); // a RArray would be better than a CArrayFix, but unfortunately RArray doesn't (yet) have a TArray interface
  1092 			    CleanupStack::PushL(arrayOfCharacters);
  1092 			    CleanupStack::PushL(arrayOfCharacters);
  1093 			    arrayOfCharacters->AppendL(' ');
  1093 			    int i;
  1094 			    arrayOfCharacters->AppendL('!');
  1094 			    TUint32 cjkBase = 0x20020;
  1095 			    arrayOfCharacters->AppendL('\"');
       
  1096 			    arrayOfCharacters->AppendL('#');
       
  1097 			    TUint32 ch;
  1095 			    TUint32 ch;
  1098                 ch = 0x20024;
  1096 			    for (i=0; i<numberOfCharacters - 3; i++)
       
  1097 			        {
       
  1098 			            ch = cjkBase++;
       
  1099 			            TUint32 hi = ((ch - 0x10000) / 0x400) + 0xD800;
       
  1100 			            TUint32 lo = ((ch - 0x10000) % 0x400) + 0xDC00;
       
  1101 			            arrayOfCharacters->AppendL(hi);
       
  1102 			            arrayOfCharacters->AppendL(lo);
       
  1103 			            i++;
       
  1104 			        }
       
  1105                 ch++;
  1099                 TUint32 hi = ((ch - 0x10000) / 0x400) + 0xD800;
  1106                 TUint32 hi = ((ch - 0x10000) / 0x400) + 0xD800;
  1100                 TUint32 lo = ((ch - 0x10000) % 0x400) + 0xDC00;
  1107                 TUint32 lo = ((ch - 0x10000) % 0x400) + 0xDC00;
  1101                 arrayOfCharacters->AppendL(lo);
  1108                 arrayOfCharacters->AppendL(lo);
  1102                 arrayOfCharacters->AppendL(hi);
  1109                 arrayOfCharacters->AppendL(hi);
  1103                 arrayOfCharacters->AppendL(hi);
  1110                 arrayOfCharacters->AppendL(hi);