uriEscape overloads

Synopses

Declared in <folly/String.h>

Similar to uriEscape above, but returns the escaped string.

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

Percent‐encodes a string according to the given escape mode.

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

Return Value

The escaped string.

Parameters

Name

Description

str

The input string to escape.

mode

The escaping mode to apply.

out

The output string that the escaped result is appended to.

Created with MrDocs