Implementation of unescape method.
| 93 | |
| 94 | // Implementation of unescape method. |
| 95 | void 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. |
| 106 | void curl_easy::reset() NOEXCEPT { |
nothing calls this directly
no test coverage detected