sl@0: // Copyright (c) 2001-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 "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: #ifndef __TEXTUTILSTESTCOMMON_H__ sl@0: #define __TEXTUTILSTESTCOMMON_H__ sl@0: sl@0: // System includes sl@0: // sl@0: #include sl@0: sl@0: template sl@0: LOCAL_C TInt DoTestTextUtilsRemove(const TDesCType& aBase, const TDesCType& aRemoveLeft, TInt aConsumedLeft, sl@0: const TDesCType& aRemoveRight, TInt aConsumedRight, sl@0: const TDesCType& aRemoveBoth, TInt aConsumedBoth); sl@0: sl@0: template sl@0: LOCAL_C TInt DoTestTextUtilsDesToIntConversion(const TDesCType& aDes, TInt aInt, TBool aValid); sl@0: sl@0: template sl@0: LOCAL_C TInt DoTestTextUtilsIntToDesConversion(TInt aInt, const TDesCType& aDes); sl@0: sl@0: template sl@0: LOCAL_C TInt DoTestTextUtilsDesToHexConversion(const TDesCType& aDes, TInt aHex, TBool aValid); sl@0: sl@0: template sl@0: LOCAL_C TInt DoTestTextUtilsHexToDesConversion(TInt aHex, const TDesCType& aDes); sl@0: sl@0: template sl@0: LOCAL_C TInt DoTestExtractQuotedStringL( sl@0: const TDesCType& aBuffer, sl@0: const TDesCType& aString, sl@0: const TDesCType& aRemainder, sl@0: TInt aExpectedError sl@0: ); sl@0: sl@0: template sl@0: LOCAL_C TInt DoExtractTokenFromListMultipleSeparator( sl@0: const TDesCType& aBuffer, sl@0: const TDesCType& aToken0, sl@0: const TDesCType& aToken1, sl@0: const TDesCType& aToken2, sl@0: const TDesCType& aRemainder, sl@0: const TDesCType& aSeparator sl@0: ); sl@0: sl@0: template sl@0: LOCAL_C TInt DoExtractTokenFromListSingleSeparator( sl@0: const TDesCType& aBuffer, sl@0: const TDesCType& aToken0, sl@0: const TDesCType& aToken1, sl@0: const TDesCType& aToken2, sl@0: const TDesCType& aRemainder, sl@0: TChar aSeparator sl@0: ); sl@0: #endif // __TEXTUTILSTESTCOMMON_H__