X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..8acad210fa179e699cfbb095d24b23b3fbf38dbc:/interface/wx/uri.h diff --git a/interface/wx/uri.h b/interface/wx/uri.h index 82b38b4bb8..3bf6f37389 100644 --- a/interface/wx/uri.h +++ b/interface/wx/uri.h @@ -67,13 +67,15 @@ public: Creates an empty URI. */ wxURI(); + /** Constructor for quick creation. @param uri URI (Uniform Resource Identifier) to initialize with. */ - wxURI(const wxChar* uri); + wxURI(const wxString& uri); + /** Copies this URI from another URI. @@ -104,13 +106,12 @@ public: /** Creates this URI from the @a uri string. - Returns the position at which parsing stopped (there is no such thing - as an "invalid" wxURI). + Returns @true if this instance was correctly initialized. @param uri String to initialize from. */ - const wxChar* Create(const wxString uri); + bool Create(const wxString& uri); /** Obtains the fragment of this URI. @@ -125,7 +126,7 @@ public: /** Obtains the host type of this URI, which is one of wxURIHostType. */ - const wxURIHostType& GetHostType() const; + wxURIHostType GetHostType() const; /** Returns the password part of the userinfo component of this URI. Note @@ -134,7 +135,7 @@ public: @c "http://:@mysite.com/mypath" */ - const wxString& GetPassword() const; + wxString GetPassword() const; /** Returns the (normalized) path of the URI. @@ -199,7 +200,7 @@ public: @c "http://:@mysite.com/mypath" */ - const wxString& GetUser() const; + wxString GetUser() const; /** Returns the UserInfo component of the URI. @@ -284,7 +285,7 @@ public: @param uri String with escaped characters to convert. */ - wxString Unescape(const wxString& uri); + static wxString Unescape(const wxString& uri); /** Compares this URI to another URI, and returns @true if this URI equals @@ -293,6 +294,6 @@ public: @param uricomp URI to compare to. */ - void operator ==(const wxURI& uricomp); + bool operator==(const wxURI& uricomp) const; };