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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
26 #ifndef __URIUTILS_H__
27 #define __URIUTILS_H__
32 #include <authority8.h>
46 Enum defining a flag used to indicate host type.
54 Indicates host is of type IPv6. Example: 1080:0:0:0:8:800:200C:417A
58 Indicates host is of type IPv4. Example: 192.168.202.18
62 Indicates host is in text form. Example: www.mypage.com
67 IMPORT_C static CUri8* ConvertToInternetFormL(const TUriC16& aUri);
68 IMPORT_C static CUri16* ConvertToDisplayFormL(const TUriC8& aUri);
70 IMPORT_C static CUri8* CreateUriL(const TDesC& aUri);
71 IMPORT_C static CAuthority8* CreateAuthorityL(const TDesC& aAuthority) ;
73 IMPORT_C static TBool HasInvalidChars(const TDesC8& aData);
74 IMPORT_C static TBool HasInvalidChars(const TDesC16& aData);
76 IMPORT_C static TUriHostType HostType(const TDesC8& aHost);
77 IMPORT_C static TUriHostType HostType(const TDesC16& aHost);
78 IMPORT_C static CUri8* NormaliseUriL(const TUriC8& aUri);
81 #endif // __URIUTILS_H__