absl::UrlUnescapePlus

Performs the inverse transformation of UrlEscapePlus(). It returns std::nullopt if any % is not followed by two hexadecimal digits.

Synopsis

Declared in <absl/strings/escaping.h>

[[nodiscard]]
std::optional<std::string>
UrlUnescapePlus(std::string_view input);

Return Value

The unescaped string, or std::nullopt on malformed input.

NOTE

The return value should not be discarded.

Parameters

NameDescription
inputThe percent-encoded string to unescape.