diff options
Diffstat (limited to 'tuiclient/str.h')
-rw-r--r-- | tuiclient/str.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tuiclient/str.h b/tuiclient/str.h index ef77aab..ab1ba71 100644 --- a/tuiclient/str.h +++ b/tuiclient/str.h @@ -29,13 +29,26 @@ #include <string> #include <sstream> #include <algorithm> +#include <vector> #include "log.h" using namespace std; +class Tparts{ + public: + string before, after; + Tparts(): + before(""), + after("") + {}; +}; + template<typename T> string toString(T t); +Tparts split(string splitter, string str); +vector <string> split_to_vector(string splitter, string str); string trim(std::string const& source, char const* delims = " \t\r\n"); int lower_char(int c); string noupper(string s); +string field(string prefix,ulong t, int width); #endif
\ No newline at end of file |