From cbd5810df1f051a56a052fd4ad48c9629e884d26 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 17 Apr 2025 03:03:03 +0500 Subject: feat: separate strings by length (new function) --- bot/src/utils/string.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bot/src/utils/string.hpp') diff --git a/bot/src/utils/string.hpp b/bot/src/utils/string.hpp index c1f0121..18d4f9a 100644 --- a/bot/src/utils/string.hpp +++ b/bot/src/utils/string.hpp @@ -30,6 +30,11 @@ namespace bot { std::vector> separate_by_length( const std::vector &vector, const int &max_length); + + std::vector separate_by_length( + const std::string &base, const std::vector &values, + const std::string &prefix, const std::string &separator, + const long long &max_length); } } } -- cgit v1.2.3