X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14906731b1d90d356181c0650abac1df0240cdce..9e855852c1bc24ddd49b69df5290111022a96093:/src/common/url.cpp diff --git a/src/common/url.cpp b/src/common/url.cpp index 89b1f889cc..3c8aebe2dc 100644 --- a/src/common/url.cpp +++ b/src/common/url.cpp @@ -45,15 +45,13 @@ IMPLEMENT_CLASS(wxURL, wxObject) wxProtoInfo *wxURL::g_protocols = NULL; wxHTTP *wxURL::g_proxy; -///////////////////////////////////////////////////////////////// -// wxURL //////////////////////////////////////////////////////// -///////////////////////////////////////////////////////////////// +// -------------------------------------------------------------- +// wxURL +// -------------------------------------------------------------- -/* - * -------------------------------------------------------------- - * --------- wxURL CONSTRUCTOR DESTRUCTOR ----------------------- - * -------------------------------------------------------------- - */ +// -------------------------------------------------------------- +// --------- wxURL CONSTRUCTOR DESTRUCTOR ----------------------- +// -------------------------------------------------------------- wxURL::wxURL(const wxString& url) { @@ -118,11 +116,10 @@ wxURL::~wxURL() CleanData(); } -/* - * -------------------------------------------------------------- - * --------- wxURL urls decoders -------------------------------- - * -------------------------------------------------------------- - */ +// -------------------------------------------------------------- +// --------- wxURL urls decoders -------------------------------- +// -------------------------------------------------------------- + bool wxURL::PrepProto(wxString& url) { int pos; @@ -219,11 +216,10 @@ bool wxURL::FetchProtocol() return FALSE; } -/* - * -------------------------------------------------------------- - * --------- wxURL get ------------------------------------------ - * -------------------------------------------------------------- - */ +// -------------------------------------------------------------- +// --------- wxURL get ------------------------------------------ +// -------------------------------------------------------------- + wxInputStream *wxURL::GetInputStream(void) { wxIPV4address addr; @@ -318,7 +314,22 @@ void wxURL::SetProxy(const wxString& url_proxy) wxString wxURL::ConvertToValidURI(const wxString& uri) { - return wxString(uri); + wxString out_str; + wxString hexa_code; + size_t i; + + for (i=0;i