A complete URI.
More...
#include <URI.hh>
|
static bool | Valid (const std::string &_str) |
| Validate a string as URI. More...
|
|
URI |
( |
const std::string & |
_str | ) |
|
Construct a URI object from a string.
- Parameters
-
Copy constructor.
- Parameters
-
Remove all components of the URI.
URI& operator= |
( |
const URI & |
_uri | ) |
|
Equal operator.
- Parameters
-
- Returns
- Itself.
bool operator== |
( |
const URI & |
_uri | ) |
const |
Return true if the two URIs match.
- Parameters
-
[in] | _uri | Another URI to compare. |
- Returns
- True if the two URIs match.
bool Parse |
( |
const std::string & |
_str | ) |
|
Parse a string as URI.
- Parameters
-
- Returns
- True if the string can be parsed as a URI.
Get a mutable version of the path component.
- Returns
- A reference to the path
Get a const reference of the path component.
- Returns
- A const reference of the path.
Get a mutable version of the query component.
- Returns
- A reference to the query
Get a const reference of the query component.
- Returns
- A const reference of the query.
std::string Scheme |
( |
| ) |
const |
Get the URI's scheme.
- Returns
- The scheme
void SetScheme |
( |
const std::string & |
_scheme | ) |
|
Set the URI's scheme.
- Parameters
-
std::string Str |
( |
| ) |
const |
Get the URI as a string, which has the form:
scheme://path?query
- Returns
- The full URI as a string
Validate this URI.
- Returns
- True if this can be parsed as a URI.
static bool Valid |
( |
const std::string & |
_str | ) |
|
|
static |
Validate a string as URI.
- Parameters
-
[in] | _str | The string to validate. |
- Returns
- True if the string can be parsed as a URI.
The documentation for this class was generated from the following file: