Return the number of bytes needed to hold the string with percent-decoding applied.
Defined in header <boost/url/pct_encoding.hpp>
std::size_t pct_decode_bytes_unchecked( string_view s);
This function calculates the number of bytes needed to apply percent-decoding
to the encoded string s
,
excluding any null terminator. The caller is responsible for validating the
input string before calling this function.
std::size_t size = pct_decode_bytes_unchecked( "Program%20Files" ); assert( size == 13 );
The string s
must contain
a valid percent-encoding.
Throws nothing.
The number of bytes needed to apply percent-decoding, excluding any null terminator.
Name |
Description |
---|---|
|
The string to inspect. |
Convenience header <boost/url.hpp>