/**
@class wxURI
- @wxheader{uri.h}
wxURI is used to extract information from a URI (Uniform Resource
Identifier).
wxFileSystem, the old wxURL, and older url specifications.
@library{wxbase}
- @category{data}
+ @category{net}
@see wxURL
*/
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.
/**
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.
/**
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
@c "http://<user>:<password>@mysite.com/mypath"
*/
- const wxString& GetPassword() const;
+ wxString GetPassword() const;
/**
Returns the (normalized) path of the URI.
@c "http://<user>:<password>@mysite.com/mypath"
*/
- const wxString& GetUser() const;
+ wxString GetUser() const;
/**
Returns the UserInfo component of the URI.
@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
@param uricomp
URI to compare to.
*/
- void operator ==(const wxURI& uricomp);
+ bool operator==(const wxURI& uricomp) const;
};