uriUnescape overloads

Synopses

Declared in <folly/String.h>

Similar to uriUnescape above, but returns the unescaped string.

template<class String>
String
uriUnescape(
    StringPiece str,
    UriEscapeMode mode = UriEscapeMode::ALL);

Similar to tryUriUnescape above, but without folly::Expected wrapping, and throwing std::invalid_argument on malformed input.

template<class String>
void
uriUnescape(
    StringPiece str,
    String& out,
    UriEscapeMode mode = UriEscapeMode::ALL);

Return Value

The unescaped string.

Parameters

Name

Description

str

The input string to unescape.

mode

The escaping mode that was used.

out

The output string that the unescaped result is appended to.

Created with MrDocs