#include <uriutils.h>
class UriUtils |
Public Member Enumerations | |
---|---|
enum | TUriHostType { EIPv6Host, EIPv4Host, ETextHost } |
Public Member Functions | |
---|---|
IMPORT_C CUri16 * | ConvertToDisplayFormL(const TUriC8 &) |
IMPORT_C CUri8 * | ConvertToInternetFormL(const TUriC16 &) |
IMPORT_C CAuthority8 * | CreateAuthorityL(const TDesC &) |
IMPORT_C CUri8 * | CreateUriL(const TDesC &) |
IMPORT_C TBool | HasInvalidChars(const TDesC8 &) |
IMPORT_C TBool | HasInvalidChars(const TDesC16 &) |
IMPORT_C TUriHostType | HostType(const TDesC8 &) |
IMPORT_C TUriHostType | HostType(const TDesC16 &) |
IMPORT_C CUri8 * | NormaliseUriL(const TUriC8 &) |
Comments :
Converts an 8-bit format uri its into display form. Any escape tripes are decoded and sets of Utf8 format characters are converted into Unicode.
Parameter | Description |
---|---|
aUri | The 8-bit format uri. |
Returns: A pointer to a newly created 16-bit uri.
Converts a 16-bit format uri into its internet form. Any Unicode characters are converted into Utf8 representation and then any excluded characters are escape encoded. Reserved characters specified in RFC2396 will not be escape encoded however, these include ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ",". For example http://localhost will not be encoded to http3A2F2Flocalhost.
Parameter | Description |
---|---|
aUri | The 16-bit format uri. |
Returns: A pointer to a newly created 8-bit uri.
IMPORT_C CAuthority8 * | CreateAuthorityL | ( | const TDesC & | aAuthority | ) | [static] |
Create a new CAuthority8 object from a Unicode descriptor.
Parameter | Description |
---|---|
aAuthority | a Unicode string containing the Authority to parse. |
Returns: the new CAuthority8 object
Checks a descriptor for excluded (invalid) characters. Excluded characters include all control characters (values 0x00 to 0x1F and greater than 0x7F), space (0x20), delimiter characters ('<', '>', '#', '', '"') and unwise characters ('{', '}', '|', '\', '^', '[', ']', '`').
Parameter | Description |
---|---|
aData | The descriptor to be checked. |
Returns: A boolean value of ETrue if the descriptor contains invalid characters, otherwise EFalse.
Checks a descriptor for excluded (invalid) characters. Excluded characters include all control characters (values 0x00 to 0x1F and greater than 0x7F), space (0x20), delimiter characters ('<', '>', '#', '','"') and unwise characters ('{', '}', '|', '\', '^', '[', ']', '`').
Parameter | Description |
---|---|
aData | The descriptor to be checked. |
Returns: A boolean value of ETrue if the descriptor contains invalid characters, otherwise EFalse.
IMPORT_C TUriHostType | HostType | ( | const TDesC8 & | aHost | ) | [static] |
Checks the supplied host for an IPv4, IPv6 or text format host
Parameter | Description |
---|---|
aHost | The descriptor containing the host to check |
Returns: A TUriHostType enum of either EIPv6, EIPv4, EText or EUnknown
IMPORT_C TUriHostType | HostType | ( | const TDesC16 & | aHost | ) | [static] |
Checks the supplied host for an IPv4, IPv6 or text format host
Parameter | Description |
---|---|
aHost | The descriptor containing the host to check |
Returns: A TUriHostType enum of either EIPv6, EIPv4, EText or EUnknown
Supports Syntax-Based Normalization as specifed in section 6.2.2 of RFC3986. returns a new CUri8 object containing a normalised URI from a parsed URI object.
Parameter | Description |
---|---|
aUri | A reference to a parsed uri object. |
Returns: A pointer to a CUri8 object containing normalised URI.