graphicsdeviceinterface/gdi/sgdi/BidiCopy.h
changeset 183 6a1564a2f3e6
parent 168 2bd88482bfe5
child 194 18f84489a694
equal deleted inserted replaced
168:2bd88482bfe5 183:6a1564a2f3e6
     1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef BIDICOPY_H_
       
    17 #define BIDICOPY_H_
       
    18 
       
    19 #include <e32def.h>
       
    20 
       
    21 class BidiCopy
       
    22 /** Text copying and reversal routines.
       
    23 @internalTechnology */
       
    24 	{
       
    25 public:
       
    26 	static TInt Mirror(TInt a);
       
    27 	static void ReverseCodes(TText* aText, TInt aLength);
       
    28 	static TText* CopyBackwards(TText* aDestination,
       
    29 		const TText* aSource, TInt aLength);
       
    30 	static void DeleteUnreversedSurrogates(TText* aText, TInt aLength);
       
    31 	static void CorrectSurrogatePairs(TText* aText, TInt aLength);
       
    32 	static void CorrectGroups(TText* aText, TInt aLength);
       
    33 	 static void SubstituteMirrorImages(TText* aText, TInt aLength);
       
    34 	static TText* CopyMirror(TText* aDestination, const TText* aSource, TInt length);
       
    35 	static TText* OutputTChar(TText* aDestination, TInt aToOutput);
       
    36 	static TText* CopyBackwardsWithMirroring(TText* aDestination,
       
    37 		const TText* aSource, TInt aLength);
       
    38 	static TText* CopyGroupsBackwards(TText* aDestination,
       
    39 		const TText* aSource, TInt aLength);
       
    40 	static TBool ImplicitDirectionalityIsRightToLeft(
       
    41 		const TText* aText, TInt aLength, TBool* aFound);
       
    42 	};
       
    43 
       
    44 #endif