![]() |
Home | Libraries | People | FAQ | More |
(Inherited from url_view_base
)
Return the fragment.
pct_string_view encoded_fragment() const;
This function returns the fragment as a string with percent-escapes. Ownership is not transferred; the string returned references the underlying character buffer, which must remain valid or else undefined behavior occurs.
assert( [link url.ref.boost__urls__url_view_base.url_view `url_view`]( "http://www.example.com/index.htm#a%2D1" ).[link url.ref.boost__urls__static_url.encoded_fragment `encoded_fragment`]() == "a%2D1" );
Constant.
Throws nothing.
[link url.ref.boost__urls__static_url.fragment `fragment`] = *( pchar / "/" / "?" ) pchar = unreserved / pct-encoded / sub-delims / ":" / "@"