Added API::urldecode()
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
dd379bb573
commit
5df220913b
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.7)
|
cmake_minimum_required (VERSION 3.7)
|
||||||
project (mastodon-cpp
|
project (mastodon-cpp
|
||||||
VERSION 0.17.1
|
VERSION 0.18.0
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -143,6 +143,11 @@ const std::string API::urlencode(const std::string &str)
|
||||||
return curlpp::escape(str);
|
return curlpp::escape(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const std::string API::urldecode(const std::string &str)
|
||||||
|
{
|
||||||
|
return curlpp::unescape(str);
|
||||||
|
}
|
||||||
|
|
||||||
const uint_fast16_t API::register_app1(const string &instance,
|
const uint_fast16_t API::register_app1(const string &instance,
|
||||||
const string &client_name,
|
const string &client_name,
|
||||||
const string &redirect_uri,
|
const string &redirect_uri,
|
||||||
|
|
|
@ -335,6 +335,21 @@ public:
|
||||||
*/
|
*/
|
||||||
static const string urlencode(const string &str);
|
static const string urlencode(const string &str);
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* @brief Decodes a percent-encoded string.
|
||||||
|
*
|
||||||
|
* Calls curlpp::unescape(str)
|
||||||
|
*
|
||||||
|
* See RFC 3986 section 2.1 for more info.
|
||||||
|
*
|
||||||
|
* @param str The string
|
||||||
|
*
|
||||||
|
* @return The decoded string
|
||||||
|
*
|
||||||
|
* @since 0.18.0
|
||||||
|
*/
|
||||||
|
static const string urldecode(const string &str);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @brief Register application, step 1/2
|
* @brief Register application, step 1/2
|
||||||
*
|
*
|
||||||
|
|
Reference in New Issue