The path component of a URI.
More...
#include <URI.hh>
|
static bool | Valid (const std::string &_str) |
| Return true if the string is a valid path. More...
|
|
The path component of a URI.
Copy constructor.
- Parameters
-
URIPath |
( |
const std::string & |
_str | ) |
|
Construct a URIPath object from a string.
- Parameters
-
Remove all parts of the path.
bool Contains |
( |
const URIPath & |
_other | ) |
const |
Returns true if _other is a subset of this, counting from the beginning.
- Parameters
-
- Returns
- True if this path contains _other.
const URIPath operator/ |
( |
const std::string & |
_part | ) |
const |
Get the current path with the _part added to the end.
- Parameters
-
- Returns
- A new Path that consists of "this / _part"
- See Also
- PushBack
const URIPath& operator/= |
( |
const std::string & |
_part | ) |
|
Compound assignment operator.
- Parameters
-
[in] | _part | A new path to append. |
- Returns
- A new Path that consists of "this / _part"
Equal operator.
- Parameters
-
- Returns
- Itself.
bool operator== |
( |
const URIPath & |
_path | ) |
const |
Return true if the two paths match.
- Parameters
-
[in] | _part | Path part. return True of the paths match. |
bool Parse |
( |
const std::string & |
_str | ) |
|
Parse a string as URIPath.
- Parameters
-
- Returns
- True if the string could be parsed as a URIPath.
void PushBack |
( |
const std::string & |
_part | ) |
|
Push a new part onto the back of this path.
- Parameters
-
[in] | _part | Path part to push |
- See Also
- operator/
void PushFront |
( |
const std::string & |
_part | ) |
|
Push a new part onto the front of this path.
- Parameters
-
[in] | _part | Path part to push |
std::string Str |
( |
const std::string & |
_delim = "/" | ) |
const |
Get the path as a string.
- Parameters
-
[in] | _delim | Delimiter used to separate each part of the path. |
- Returns
- The path as a string, with each path part separated by _delim.
static bool Valid |
( |
const std::string & |
_str | ) |
|
|
static |
Return true if the string is a valid path.
- Parameters
-
- Returns
- True if _str is a valid URI path.
Return true if this is a valid path.
- Returns
- True if this is a valid URI path.
The documentation for this class was generated from the following file: