Syntax (see uri_path for additional definitions): String is pct-decoded after parsing.
fragment = *( pchar | "/" | "?" )
Public Member Functions | |
| fragment () | |
| fragment (const std::string &v) | |
| bool | empty () const |
| Test if null/empty. | |
| bool | is_null () const |
| Test if null/empty. | |
| const std::string & | string () const |
| Get decoded string. | |
| std::string | encoding () const |
| Calculate encoded string. | |
Friends | |
| bool URIPP_API | parse (std::string::const_iterator &first, std::string::const_iterator last, fragment &v, std::string *errs) |
| uripp::fragment::fragment | ( | ) |
Construct.
| uripp::fragment::fragment | ( | const std::string & | v | ) |
Construct from encoded string. Note that this should not contain the leading '#'. See parse() for less strict construction.
| std::invalid_argument | if invalid encoding |
| bool URIPP_API parse | ( | std::string::const_iterator & | first, | |
| std::string::const_iterator | last, | |||
| fragment & | v, | |||
| std::string * | errs | |||
| ) | [friend] |
Parse URI fragment, returning whether found or not and advancing first and setting fragment if found. Does not skip leading space.
If errs is specified the following take place:
errs. The string is used without decoding (i.e. assumes an unencoded '').
1.4.7