URIFragment Class Reference
The fragment component of a URI. More...
#include <URI.hh>
Public Member Functions | |
URIFragment () | |
Constructor. More... | |
URIFragment (const std::string &_str) | |
Construct a URIFragment object from a string. More... | |
void | Clear () |
Remove all values of the fragment. More... | |
URIFragment & | operator= (const std::string &_fragment) |
Assignment operator. More... | |
bool | operator== (const URIFragment &_fragment) const |
Return true if the two fragments contain the same values. More... | |
bool | Parse (const std::string &_string) |
Parse a string as URIFragment. More... | |
std::string | Str () const |
Get the fragment as a string. More... | |
bool | Valid () const |
Check if this is a valid URI fragment. More... | |
Static Public Member Functions | |
static bool | Valid (const std::string &_str) |
Check if a string is a valid URI fragment. More... | |
Detailed Description
The fragment component of a URI.
Constructor & Destructor Documentation
◆ URIFragment() [1/2]
URIFragment | ( | ) |
Constructor.
◆ URIFragment() [2/2]
|
explicit |
Construct a URIFragment object from a string.
- Parameters
-
[in] _str A string.
Member Function Documentation
◆ Clear()
void Clear | ( | ) |
Remove all values of the fragment.
◆ operator=()
URIFragment& operator= | ( | const std::string & | _fragment | ) |
◆ operator==()
bool operator== | ( | const URIFragment & | _fragment | ) | const |
Return true if the two fragments contain the same values.
- Parameters
-
[in] _fragment A URI fragment to compare. return True if the fragments match.
◆ Parse()
bool Parse | ( | const std::string & | _string | ) |
Parse a string as URIFragment.
- Parameters
-
[in] _str A string.
- Returns
- True if the string can be parsed as a URIFragment.
◆ Str()
std::string Str | ( | ) | const |
Get the fragment as a string.
- Returns
- The fragment as a string.
◆ Valid() [1/2]
bool Valid | ( | ) | const |
◆ Valid() [2/2]
|
static |
The documentation for this class was generated from the following file: