Refactor, test and improve the way we cut too-long messages for IRC

This commit is contained in:
louiz’
2016-06-14 20:14:36 +02:00
parent 19bca5c2f2
commit 80d0c19c5a
4 changed files with 28 additions and 9 deletions
+2
View File
@@ -1,8 +1,10 @@
#ifndef STRING_UTILS_HPP_INCLUDED
#define STRING_UTILS_HPP_INCLUDED
#include <vector>
#include <string>
bool to_bool(const std::string& val);
std::vector<std::string> cut(const std::string& val, const std::size_t size);
#endif /* STRING_UTILS_HPP_INCLUDED */