This tutorial describes the steps to use URI utilities.
UriUtils class checks URIs for invalid characters and has both 8 and 16-bit variants. It provides additional utilities for CUri8 and CAuthority8 classes. The method used to check URIs is HasValidChars() , which is passed through descriptor data to check and return a boolean indicating whether invalid characters were found or not.
HasInvalidChars() checks for any excluded (also called invalid) characters in the URI to validate the invalid characters. The following are set of invalid characters:
HostType() validates the URI for the following valid host types as defined in TUriHostType :
IPv6, for example, 1080:0:0:0:8:800:200C:417A
IPv4, for example, 192.168.202.18
Text form, for example, www.mywebpage.com
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.