Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Using URI utilities

UriUtils class provides additional utilities for CUri8 and CAuthority8 classes.

You can create URI (CUri8 object) from a Unicode descriptor using UriUtils::CreateUriL(). Refer to How to create a URI for details.

Validating a URI

Validating for invalid data:

HasInvalidChars() checks for any excluded (also called invalid) characters in the URI. The set of invalid characters are given in the table below:

Category Character set

Control characters

Values 0x00 to 0x1F and greater than 0x7F

Space

0x20

Delimiters

'<', '>', '#', '%', '"'

Unwise characters

' {', '}', '|', '\', '^', '[', ']', '`'

Validating valid host:

HostType() validates the URI for the following valid host types as defined in TUriHostType:


See also

InetProtUtils Overview

How to create a URI