genericservices/httputils/Test/t_uriparser/TextUtilsTestCommon.h
changeset 31 ce057bb09d0b
parent 0 e4d67989cc36
equal deleted inserted replaced
30:e20de85af2ee 31:ce057bb09d0b
       
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __TEXTUTILSTESTCOMMON_H__
       
    17 #define __TEXTUTILSTESTCOMMON_H__
       
    18 
       
    19 // System includes
       
    20 //
       
    21 #include <e32base.h>
       
    22 
       
    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);
       
    27 
       
    28 template<class TDesCType>
       
    29 LOCAL_C TInt DoTestTextUtilsDesToIntConversion(const TDesCType& aDes, TInt aInt, TBool aValid);
       
    30 
       
    31 template<class HBufCType, class TDesCType>
       
    32 LOCAL_C TInt DoTestTextUtilsIntToDesConversion(TInt aInt, const TDesCType& aDes);
       
    33 
       
    34 template<class TDesCType>
       
    35 LOCAL_C TInt DoTestTextUtilsDesToHexConversion(const TDesCType& aDes, TInt aHex, TBool aValid);
       
    36 
       
    37 template<class HBufCType, class TDesCType>
       
    38 LOCAL_C TInt DoTestTextUtilsHexToDesConversion(TInt aHex, const TDesCType& aDes);
       
    39 
       
    40 template<class TPtrCType, class TDesCType>
       
    41 LOCAL_C TInt DoTestExtractQuotedStringL(
       
    42 									   const TDesCType& aBuffer, 
       
    43 									   const TDesCType& aString, 
       
    44 									   const TDesCType& aRemainder,
       
    45 									   TInt				aExpectedError
       
    46 									   );
       
    47 
       
    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
       
    56 												);
       
    57 
       
    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,
       
    65 												TChar				aSeparator
       
    66 												);
       
    67 #endif	// __TEXTUTILSTESTCOMMON_H__