MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / unescape

Method unescape

src/curl_easy.cpp:95–103  ·  view source on GitHub ↗

Implementation of unescape method.

Source from the content-addressed store, hash-verified

93
94// Implementation of unescape method.
95void curl_easy::unescape(string &url) {
96 std::unique_ptr<char,void(*)(char*)> url_decoded(curl_easy_unescape(this->curl,url.c_str(),(int)url.length(),
97 nullptr),[](char *ptr) { curl_free(ptr); });
98
99 if (url_decoded == nullptr) {
100 throw curl_easy_exception("Null pointer intercepted",__FUNCTION__);
101 }
102 url = string(url_decoded.get());
103}
104
105// Implementation of reset method.
106void curl_easy::reset() NOEXCEPT {

Callers

nothing calls this directly

Calls 2

curl_easy_exceptionClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected