summaryrefslogtreecommitdiff
path: root/include/tgbot/tools/StringTools.h
diff options
context:
space:
mode:
authorOleg Morozenkov <omorozenkov@gmail.com>2015-07-29 14:45:45 +0300
committerOleg Morozenkov <omorozenkov@gmail.com>2015-07-29 14:45:45 +0300
commit99072def67e54d664edd96b9c0f124c4f09cedee (patch)
treeb34ce972e87686b27f6d66ffaa31b079aa0b52d7 /include/tgbot/tools/StringTools.h
parentf69b2ac4ff123e0fb8b335fe28f6de4242c4f396 (diff)
Fix includes + fix some minor bugs
Diffstat (limited to 'include/tgbot/tools/StringTools.h')
-rw-r--r--include/tgbot/tools/StringTools.h3
1 files changed, 2 insertions, 1 deletions
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.