|
|
|
Location:
UriUtils.h
Link against: InetProtUtil.lib
class UriUtils;
Supported from 7.0
A set of URI handling utility functions.
Defined in UriUtils:
ConvertToDisplayFormL(), ConvertToInternetFormL(), EIPv4Host, EIPv6Host, ETextHost, HasInvalidChars(), HasInvalidChars(), HostType(), HostType(), TUriHostType
static CUri8* ConvertToInternetFormL(const TUriC16& aUri);
Converts a 16-bit format URI into its internet form.
Unicode characters are converted into Utf8 representation, and then any excluded characters are escape-encoded.
|
|
|
static CUri16* ConvertToDisplayFormL(const TUriC8& aUri);
Converts an 8-bit format URI into its display form.
Any escape triples are decoded, and sets of Utf8 format characters are converted into Unicode.
|
|
|
static TBool HasInvalidChars(const TDesC8& aData);
Tests whether the specified 8-bit data contains any excluded (invalid) characters.
Excluded characters are:
all control characters (values 0x00 to 0x1F and greater than 0x7F)
the space character (0x20)
the delimiter characters:
<>#%"
the characters:
{}|\^[]`
|
|
static TBool HasInvalidChars(const TDesC16& aData);
Tests whether the specified 16-bit data contains any excluded (invalid) characters.
Excluded characters are:
all control characters (values 0x00 to 0x1F and greater than 0x7F)
the space character (0x20)
the delimiter characters:
<>#%"
the characters:
{}|\^[]`
|
|
static UriUtils::TUriHostType HostType(const TDesC8& aHost);
Gets the host type (8-bit variant).
|
|
static UriUtils::TUriHostType HostType(const TDesC16& aHost);
Gets the host type (16-bit variant).
|
|
TUriHostType
Defines the type of host.
An enumeration of this type is returned by the variants of the
HostType() function.
|