diff options
| author | ilotterytea <iltsu@alright.party> | 2024-12-09 11:06:46 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-12-09 11:06:46 +0500 |
| commit | ad05411350f1152cc3c86cebb5b8492d34507b33 (patch) | |
| tree | d577d9adf03b80bb1ab5c2fc4a91f097d1ce5f83 /bot/src/utils/string.hpp | |
| parent | 99d1a1563676c2bb95574fb079a9367fbd1acf34 (diff) | |
feat: an util for separating string vectors by text length
Diffstat (limited to 'bot/src/utils/string.hpp')
| -rw-r--r-- | bot/src/utils/string.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/src/utils/string.hpp b/bot/src/utils/string.hpp index c8385ad..c1f0121 100644 --- a/bot/src/utils/string.hpp +++ b/bot/src/utils/string.hpp @@ -27,6 +27,9 @@ namespace bot { } bool string_contains_sql_injection(const std::string &input); + + std::vector<std::vector<std::string>> separate_by_length( + const std::vector<std::string> &vector, const int &max_length); } } } |
