From 99072def67e54d664edd96b9c0f124c4f09cedee Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Wed, 29 Jul 2015 14:45:45 +0300 Subject: Fix includes + fix some minor bugs --- include/tgbot/tools/StringTools.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/tgbot/tools/StringTools.h') diff --git a/include/tgbot/tools/StringTools.h b/include/tgbot/tools/StringTools.h index 0a01b0d..a8b4af1 100644 --- a/include/tgbot/tools/StringTools.h +++ b/include/tgbot/tools/StringTools.h @@ -63,9 +63,10 @@ std::string generateRandomString(size_t length); /** * Performs url encode. * @param value Source url string + * @param additionalLegitChars Optional. String of chars which will be not encoded in source url string. * @return Encoded url string */ -std::string urlEncode(const std::string& value); +std::string urlEncode(const std::string& value, const std::string additionalLegitChars = ""); /** * Performs url decode. -- cgit v1.2.3