Url provides utility functions to deal with URL/URI strings.
More...
#include <cel_urlutil.h>
List of all members.
Detailed Description
Url provides utility functions to deal with URL/URI strings.
Member Function Documentation
| static String Celartem::Url::canonicalize |
( |
const String & |
inUrl |
) |
[static] |
This function canonicalizes the specified URL. A canonical URL only contains 7bit ASCII characters and any Internationalized Domain Names are also encoded with Punycode.
- Parameters:
-
| inUrl | URL to canonicalize. |
- Returns:
- Canonical URL.
| static String Celartem::Url::decode |
( |
const String & |
inString |
) |
[static] |
This function unescapes the characters in the specified string.
- Parameters:
-
| inString | inString to unescape. |
- Returns:
- Unescaped string.
| static String Celartem::Url::decodeIfEscaped |
( |
const String & |
inString |
) |
[static] |
This function unescapes the characters in the specified string if it seems to be escaped.
- Parameters:
-
- Returns:
- Unescaped string.
| static String Celartem::Url::encode |
( |
const String & |
inString |
) |
[static] |
This function escapes the characters in the specified string.
- Parameters:
-
- Returns:
- Escaped string.
| static String Celartem::Url::encodeIfNotEscaped |
( |
const String & |
inString |
) |
[static] |
This function escapes the characters in the specified string if it does not encoded.
- Parameters:
-
- Returns:
- Escaped string.
| static String Celartem::Url::getLocalFilePathFromFileUrl |
( |
const String & |
inUrl |
) |
[static] |
This function extracts local file path from the specified local file URL.
- Parameters:
-
| inUrl | URL/path to local file; the file don't have to exist. |
- Returns:
- Local file name if succeeded; otherwise NullString.
| static String Celartem::Url::idnDecode |
( |
const String & |
inHostName |
) |
[static] |
This function decodes the specified plain ASCII domain name into a corresponding Internationalized Domain Name.
- Parameters:
-
| inHostName | Host name to decode. |
- Returns:
- Decoded IDN domain name.
| static String Celartem::Url::idnEncode |
( |
const String & |
inHostName |
) |
[static] |
This function encodes the specified Internationalized Domain Name into a corresponding plain ASCII domain name.
- Parameters:
-
| inHostName | Host name to encode. |
- Returns:
- Encoded ASCII domain name.
| static bool Celartem::Url::isEncoded |
( |
const String & |
inString |
) |
[static] |
This function determines whether the specified string is URL-encoded or not.
- Parameters:
-
- Returns:
true if the string is already encoded; otherwise false.
| static bool Celartem::Url::isUnsafeChar |
( |
UChar4 |
inChar |
) |
[inline, static] |
This function returns the character is unsafe or not.
- Parameters:
-
| inChar | A character to be verified. |
- Returns:
true if unsafe, otherwise false.
| static void Celartem::Url::separateUrl |
( |
UrlComponents & |
outComponents, |
|
|
const String & |
inUrl | |
|
) |
| | [static] |
This function cracks the input URL/URI into parts and returns them in an UrlComponents structure.
- Parameters:
-
| outComponents | An UrlComponents instance that receives the result. |
| inUrl | An URL to crack. |
The documentation for this struct was generated from the following file: