First public contribution.
1 // Copyright (c) 2001-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.
16 #ifndef __TEXTUTILSTESTCOMMON_H__
17 #define __TEXTUTILSTESTCOMMON_H__
23 template<class TPtrCType, class TDesCType>
24 LOCAL_C TInt DoTestTextUtilsRemove(const TDesCType& aBase, const TDesCType& aRemoveLeft, TInt aConsumedLeft,
25 const TDesCType& aRemoveRight, TInt aConsumedRight,
26 const TDesCType& aRemoveBoth, TInt aConsumedBoth);
28 template<class TDesCType>
29 LOCAL_C TInt DoTestTextUtilsDesToIntConversion(const TDesCType& aDes, TInt aInt, TBool aValid);
31 template<class HBufCType, class TDesCType>
32 LOCAL_C TInt DoTestTextUtilsIntToDesConversion(TInt aInt, const TDesCType& aDes);
34 template<class TDesCType>
35 LOCAL_C TInt DoTestTextUtilsDesToHexConversion(const TDesCType& aDes, TInt aHex, TBool aValid);
37 template<class HBufCType, class TDesCType>
38 LOCAL_C TInt DoTestTextUtilsHexToDesConversion(TInt aHex, const TDesCType& aDes);
40 template<class TPtrCType, class TDesCType>
41 LOCAL_C TInt DoTestExtractQuotedStringL(
42 const TDesCType& aBuffer,
43 const TDesCType& aString,
44 const TDesCType& aRemainder,
48 template<class TPtrCType, class TDesCType>
49 LOCAL_C TInt DoExtractTokenFromListMultipleSeparator(
50 const TDesCType& aBuffer,
51 const TDesCType& aToken0,
52 const TDesCType& aToken1,
53 const TDesCType& aToken2,
54 const TDesCType& aRemainder,
55 const TDesCType& aSeparator
58 template<class TPtrCType, class TDesCType>
59 LOCAL_C TInt DoExtractTokenFromListSingleSeparator(
60 const TDesCType& aBuffer,
61 const TDesCType& aToken0,
62 const TDesCType& aToken1,
63 const TDesCType& aToken2,
64 const TDesCType& aRemainder,
67 #endif // __TEXTUTILSTESTCOMMON_H__