Remove the last characters
<boost/url/decode_view.hpp>
void remove_suffix(size_type n);
decode_view d( "Program%20Files" ); d.remove_suffix( 6 ); assert( d == "Program" );
n <= this->size()
Linear.