From d1793df1eda463b10107d41785ad1d7f055ed476 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 18 May 2024 14:48:12 +0500 Subject: upd: moved the bot part to a relative subfolder --- src/utils/string.hpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 src/utils/string.hpp (limited to 'src/utils/string.hpp') diff --git a/src/utils/string.hpp b/src/utils/string.hpp deleted file mode 100644 index c8385ad..0000000 --- a/src/utils/string.hpp +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once - -#include -#include -#include - -namespace bot { - namespace utils { - namespace string { - std::vector split_text(const std::string &text, - char delimiter); - std::string join_vector(const std::vector &vec, - char delimiter); - std::string join_vector(const std::vector &vec); - - template - std::string str(T begin, T end, char delimiter) { - std::stringstream ss; - bool first = true; - - for (; begin != end; begin++) { - if (!first) ss << delimiter; - ss << *begin; - first = false; - } - return ss.str(); - } - - bool string_contains_sql_injection(const std::string &input); - } - } -} -- cgit v1.2.3