MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / urlDecode

Function urlDecode

src/httpserver.cpp:673–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671}
672
673std::string urlDecode(const std::string &urlEncoded) {
674 std::string res;
675 if (!urlEncoded.empty()) {
676 char *decoded = evhttp_uridecode(urlEncoded.c_str(), false, nullptr);
677 if (decoded) {
678 res = std::string(decoded);
679 free(decoded);
680 }
681 }
682 return res;
683}

Callers 1

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected