:relfileprefix: ../../
[#7679395CF7D1D8E68CA4261A1F77164B17137727-encode]

= Overload set encode

== Members


pass:v,q[Apply percent-encoding to a string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
template<class CharSet>
size_t
encode(
    char* dest,
    size_t size,
    string_view s,
    const CharSet& unreserved,
    xref:boost/urls/encoding_opts.adoc[encoding_opts] opt = = {});
  xref:boost/urls/encode-09.adoc[pass:c,q,m[*_» more..._*]]
----


pass:v,q[Return a percent-encoded string]


[source,cpp,subs="verbatim,macros,-callouts"]
----
template<
    class StringToken = xref:boost/urls/string_token.adoc[string_token]::xref:boost/urls/string_token/return_string.adoc[return_string],
    class CharSet>
StringToken::result_type
encode(
    string_view s,
    const CharSet& unreserved,
    xref:boost/urls/encoding_opts.adoc[encoding_opts] opt = = {},
    StringToken&& token) noexcept;
  xref:boost/urls/encode-04.adoc[pass:c,q,m[*_» more..._*]]
----

