boost::urls::static_url::normalize_fragment

Normalize the URL fragment

Synopsis

Declared in <boost/url/static_url.hpp>

static_url&
normalize_fragment();

Description

Applies Syntax‐based normalization to the URL fragment.

Percent‐encoding triplets are normalized to uppercase letters. Percent‐encoded octets that correspond to unreserved characters are decoded.

assert( url( "http://www.example.com#%61bc" ).normalize_fragment().buffer() == "http://www.example.com#abc" );

Exception Safety

Strong guarantee. Calls to allocate may throw.

Return Value

*this

Created with MrDocs