First public contribution.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
22 /** Text copying and reversal routines.
23 @internalTechnology */
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);