diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-17 03:03:03 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-17 03:03:03 +0500 |
| commit | cbd5810df1f051a56a052fd4ad48c9629e884d26 (patch) | |
| tree | add3ba61fa3289f71f50c599ff4008372144f885 /bot/src/utils/string.hpp | |
| parent | d54fa21b30a52c453aaa03c734e278f9fc8adb02 (diff) | |
feat: separate strings by length (new function)
Diffstat (limited to 'bot/src/utils/string.hpp')
| -rw-r--r-- | bot/src/utils/string.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<std::vector<std::string>> separate_by_length( const std::vector<std::string> &vector, const int &max_length); + + std::vector<std::string> separate_by_length( + const std::string &base, const std::vector<std::string> &values, + const std::string &prefix, const std::string &separator, + const long long &max_length); } } } |
