diff -r 000000000000 -r e4d67989cc36 genericservices/httputils/UriParser/TUriCInternal.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/genericservices/httputils/UriParser/TUriCInternal.h Tue Feb 02 02:01:42 2010 +0200 @@ -0,0 +1,67 @@ +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// File contains local functions for use by the TUriC classes defined in +// Uri8.h and Uri16.h. +// +// + +/** + @file TUriCInternal.h + @see Uri8.h, Uri16.h +*/ + +#ifndef __TURICINTERNAL_H__ +#define __TURICINTERNAL_H__ + +// System includes +// +#include + +// Constants +// +const TInt KPlusChar = '+'; +const TInt KMinusChar = '-'; +const TInt KPeriodChar = '.'; + +//File URI Constants +// +_LIT(KPrivate, "private/"); +_LIT(KExtMedia, "ext-media/"); +_LIT8(KFileUriScheme8, "file"); +_LIT(KFileUriScheme16, "file"); +_LIT(KDefaultPath,"C:\\"); + +const TInt KDriveSeparator = ':'; +const TInt KUriPathSeparator = '/'; +const TInt KFilePathSeparator = '\\'; + + + +template +LOCAL_C TBool HasValidSchemeChars(const TPtrCType& aScheme); + +HBufC8* CreateUri8LC(const TDesC16& aBuf16); + +TInt DoValidate(const TUriC8& aUri); + +TInt DoEquivalenceL(const TUriC8& aLhs, const TUriC8& aRhs); + +void ChangePathSeparator(TDes& aDesPtr, TUint aPathSeperatorFrom, TUint aPathSeperatorTo); + +HBufC* GetFullFileNameFromFileUriPathL(const TDesC& aFileUriPath); +HBufC* ResolveFileNameL(const TDesC8& aPath, TUriFileName aType, TBool aIsFileUri); +void GetFileComponent(TPtrC& aNewName, const TDesC& aOldName, TUriFileName aType ); + + +#endif // __TURICINTERNAL_H__