23 #ifndef TGBOT_CPP_STRINGTOOLS_H 24 #define TGBOT_CPP_STRINGTOOLS_H 40 bool startsWith(
const std::string& str1,
const std::string& str2);
47 bool endsWith(
const std::string& str1,
const std::string& str2);
55 void split(
const std::string& str,
char delimiter, std::vector<std::string>& dest);
69 std::string
urlEncode(
const std::string& value,
const std::string& additionalLegitChars =
"");
76 std::string
urlDecode(
const std::string& value);
84 inline std::vector<std::string>
split(
const std::string& str,
char delimiter) {
85 std::vector<std::string> result;
86 split(str, delimiter, result);
92 #endif //TGBOT_CPP_STRINGTOOLS_H