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.
◆ URIPath() [1/3]
◆ URIPath() [2/3]
Copy constructor.
- Parameters
-
◆ URIPath() [3/3]
URIPath |
( |
const std::string & |
_str | ) |
|
|
explicit |
Construct a URIPath object from a string.
- Parameters
-
◆ ~URIPath()
◆ Clear()
Remove all parts of the path.
◆ Contains()
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.
◆ operator/()
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
◆ operator/=()
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"
◆ operator=()
Equal operator.
- Parameters
-
- Returns
- Itself.
◆ operator==()
bool operator== |
( |
const URIPath & |
_path | ) |
const |
Return true if the two paths match.
- Parameters
-
[in] | _part | Path part. return True of the paths match. |
◆ Parse()
bool Parse |
( |
const std::string & |
_str | ) |
|
Parse a string as URIPath.
- Parameters
-
- Returns
- True if the string could be parsed as a URIPath.
◆ PushBack()
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/
◆ PushFront()
void PushFront |
( |
const std::string & |
_part | ) |
|
Push a new part onto the front of this path.
- Parameters
-
[in] | _part | Path part to push |
◆ Str()
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.
◆ Valid() [1/2]
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.
◆ Valid() [2/2]
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: