:relfileprefix: ../../../
[#boost-urls-url_base-normalize_fragment]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/url_base.adoc[pass:[url_base]]::normalize_fragment


Normalize the URL fragment


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L2684[boost/url/url_base.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
xref:boost/urls/url_base.adoc[url_base]&
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.

=== Strong guarantee.

Calls to allocate may throw.

* link:https://datatracker.ietf.org/doc/html/rfc3986#section-6.2.2[6.2.2 Syntax-Based Normalization (rfc3986)]








