URIFragment Class Reference
The fragment component of a URI. More...
#include <URI.hh>
Public Member Functions | |
URIFragment () | |
Constructor. | |
URIFragment (const std::string &_str) | |
Construct a URIFragment object from a string. | |
void | Clear () |
Remove all values of the fragment. | |
URIFragment & | operator= (const std::string &_fragment) |
Assignment operator. | |
bool | operator== (const URIFragment &_fragment) const |
Return true if the two fragments contain the same values. | |
bool | Parse (const std::string &_string) |
Parse a string as URIFragment. | |
std::string | Str () const |
Get the fragment as a string. | |
bool | Valid () const |
Check if this is a valid URI fragment. | |
Static Public Member Functions | |
static bool | Valid (const std::string &_str) |
Check if a string is a valid URI fragment. | |
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: