![]() |
Home | Libraries | People | FAQ | More |
Remove the fragment.
static_url& remove_fragment();
This function removes the fragment. An empty fragment is distinct from having no fragment.
assert( url( "?first=john&last=doe#anchor" ).[link url.ref.boost__urls__static_url.remove_fragment `remove_fragment`]().[link url.ref.boost__urls__static_url.buffer `buffer`]() == "?first=john&last=doe" );
this->[link url.ref.boost__urls__static_url.has_fragment `has_fragment`]() == false && this->[link url.ref.boost__urls__static_url.encoded_fragment `encoded_fragment`]() == ""
Constant.
Throws nothing.
[link url.ref.boost__urls__static_url.fragment `fragment`] = *( pchar / "/" / "?" )
remove_fragment
, set_encoded_fragment
, /root/project/libs/url/include/boost/url/static_url.hpp