Return the fragment
template<
class StringToken = return_string>
StringToken::result_type
fragment(
StringToken&& token);
Declared in file <boost/url/url_view_base.hpp> at line 2149
This function calculates the fragment of the url, with percent escapes decoded and without the leading pound sign ('#') whose presence indicates that the url contains a fragment.
This function accepts an optional StringToken parameter which controls the return type and behavior of the function:
assert( url_view( "http://www.example.com/index.htm#a%2D1" ).fragment() == "a-1" );
Linear in `this->fragment().size()`.
Calls to allocate may throw. String tokens may throw exceptions.
fragment = *( pchar / "/" / "?" )
fragment-part = [ "#" fragment ]