Bitcoin ABC
0.34.3
P2P Digital Currency
Loading...
Searching...
No Matches
src
util
url.cpp
Go to the documentation of this file.
1
// Copyright (c) 2015-2018 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include <
util/url.h
>
6
7
#include <cstdlib>
8
#include <event2/http.h>
9
10
std::string
urlDecode
(
const
std::string &urlEncoded) {
11
std::string res;
12
if
(!urlEncoded.empty()) {
13
char
*decoded = evhttp_uridecode(urlEncoded.c_str(),
false
,
nullptr
);
14
if
(decoded) {
15
res = std::string(decoded);
16
free(decoded);
17
}
18
}
19
return
res;
20
}
urlDecode
std::string urlDecode(const std::string &urlEncoded)
Definition
url.cpp:10
url.h
Generated on Thu Nov 5 2026 21:14:05 for Bitcoin ABC by
1.9.8