Home | Libraries | People | FAQ | More |
Return the fragment.
template< class StringToken = string_token::return_string> StringToken::result_type fragment( StringToken&& token = {}) const;
This function returns the fragment as a string. Any percent-escapes in the string are decoded first.
assert( url_view( "http://www.example.com/index.htm#a%2D1" ).fragment() == "a-1" );
Linear in this->fragment().size()
.
Calls to allocate may throw.
fragment = *( pchar / "/" / "?" ) fragment-part = [ "#" fragment ]