HDK
|
#include <UT_Url.h>
Public Types | |
enum | Protocol { PROT_UNKNOWN, PROT_HTTP, PROT_HTTPS, PROT_WS, PROT_WSS, PROT_SMTP } |
enum | FormattingOptions : unsigned { None = 0x0, RemoveProtocol = 1 << 0, RemovePassword = 1 << 1, RemoveUserInfo = RemovePassword | 1 << 2, RemovePort = 1 << 3, RemovePath = 1 << 4, RemoveQuery = 1 << 5 } |
Static Public Member Functions | |
static bool | isDefaultPortForProtocol (Protocol prot, int port) |
Static Public Attributes | |
static const UT_Url | theInvalidUrl |
enum UT_Url::FormattingOptions : unsigned |
enum UT_Url::Protocol |
UT_Url::UT_Url | ( | ) |
UT_Url::UT_Url | ( | const UT_StringRef & | url_string, |
Protocol | force_protocol = PROT_UNKNOWN |
||
) |
UT_Url::UT_Url | ( | Protocol | prot, |
const UT_StringHolder & | host, | ||
int | port, | ||
const UT_StringHolder & | path | ||
) |
UT_Url::UT_Url | ( | Protocol | prot, |
const UT_StringHolder & | user, | ||
const UT_StringHolder & | password, | ||
const UT_StringHolder & | host, | ||
int | port, | ||
const UT_StringHolder & | path, | ||
const UT_StringHolder & | query_string | ||
) |
|
default |
|
default |
void UT_Url::clear | ( | ) |
bool UT_Url::hasMatchingHost | ( | const UT_Url & | url | ) | const |
bool UT_Url::hasMatchingHost | ( | const UT_StringHolder & | host | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
bool UT_Url::parse | ( | const UT_StringRef & | str_url, |
Protocol | force_protocol = PROT_UNKNOWN |
||
) |
|
inline |
|
inline |
int UT_Url::port | ( | ) | const |
UT_StringHolder UT_Url::protocolToString | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
UT_StringHolder UT_Url::toString | ( | unsigned | format = FormattingOptions::None | ) | const |
|
inline |
bool UT_Url::usingDefaultPortForProtocol | ( | ) | const |