UrlEncode

Percent-encode a string for use in a URL.

Synopsis

Declared in <common/url.h>

std::string
UrlEncode(std::string_view str);

Return Value

The percent-encoded string.

Parameters

NameDescription
strThe raw input string.