fontservices/textbase/sgdi/BidiCopy.h
author hgs
Mon, 12 Jul 2010 14:38:26 +0800
changeset 45 662fa7de7023
permissions -rw-r--r--
201024_05
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45
662fa7de7023 201024_05
hgs
parents:
diff changeset
     1
// Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
662fa7de7023 201024_05
hgs
parents:
diff changeset
     2
// All rights reserved.
662fa7de7023 201024_05
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
662fa7de7023 201024_05
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
662fa7de7023 201024_05
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
662fa7de7023 201024_05
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
662fa7de7023 201024_05
hgs
parents:
diff changeset
     7
//
662fa7de7023 201024_05
hgs
parents:
diff changeset
     8
// Initial Contributors:
662fa7de7023 201024_05
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
662fa7de7023 201024_05
hgs
parents:
diff changeset
    10
//
662fa7de7023 201024_05
hgs
parents:
diff changeset
    11
// Contributors:
662fa7de7023 201024_05
hgs
parents:
diff changeset
    12
//
662fa7de7023 201024_05
hgs
parents:
diff changeset
    13
// Description:
662fa7de7023 201024_05
hgs
parents:
diff changeset
    14
//
662fa7de7023 201024_05
hgs
parents:
diff changeset
    15
662fa7de7023 201024_05
hgs
parents:
diff changeset
    16
#ifndef BIDICOPY_H_
662fa7de7023 201024_05
hgs
parents:
diff changeset
    17
#define BIDICOPY_H_
662fa7de7023 201024_05
hgs
parents:
diff changeset
    18
662fa7de7023 201024_05
hgs
parents:
diff changeset
    19
#include <e32def.h>
662fa7de7023 201024_05
hgs
parents:
diff changeset
    20
662fa7de7023 201024_05
hgs
parents:
diff changeset
    21
class BidiCopy
662fa7de7023 201024_05
hgs
parents:
diff changeset
    22
/** Text copying and reversal routines.
662fa7de7023 201024_05
hgs
parents:
diff changeset
    23
@internalTechnology */
662fa7de7023 201024_05
hgs
parents:
diff changeset
    24
	{
662fa7de7023 201024_05
hgs
parents:
diff changeset
    25
public:
662fa7de7023 201024_05
hgs
parents:
diff changeset
    26
	static TInt Mirror(TInt a);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    27
	static void ReverseCodes(TText* aText, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    28
	static TText* CopyBackwards(TText* aDestination,
662fa7de7023 201024_05
hgs
parents:
diff changeset
    29
		const TText* aSource, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    30
	static void DeleteUnreversedSurrogates(TText* aText, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    31
	static void CorrectSurrogatePairs(TText* aText, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    32
	static void CorrectGroups(TText* aText, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    33
	 static void SubstituteMirrorImages(TText* aText, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    34
	static TText* CopyMirror(TText* aDestination, const TText* aSource, TInt length);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    35
	static TText* OutputTChar(TText* aDestination, TInt aToOutput);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    36
	static TText* CopyBackwardsWithMirroring(TText* aDestination,
662fa7de7023 201024_05
hgs
parents:
diff changeset
    37
		const TText* aSource, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    38
	static TText* CopyGroupsBackwards(TText* aDestination,
662fa7de7023 201024_05
hgs
parents:
diff changeset
    39
		const TText* aSource, TInt aLength);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    40
	static TBool ImplicitDirectionalityIsRightToLeft(
662fa7de7023 201024_05
hgs
parents:
diff changeset
    41
		const TText* aText, TInt aLength, TBool* aFound);
662fa7de7023 201024_05
hgs
parents:
diff changeset
    42
	};
662fa7de7023 201024_05
hgs
parents:
diff changeset
    43
662fa7de7023 201024_05
hgs
parents:
diff changeset
    44
#endif