00001 #ifndef _HELPERS__H_ 00002 #define _HELPERS__H_ 00003 00004 #include <string> 00005 #include <list> 00006 #include <map> 00007 00008 using namespace std; 00009 00010 class String { 00011 public: 00012 static bool split(const string &str, char delimiter, string &left, string &right); 00013 static list<string> split_to_list(string str, char delimiter); 00014 static map<string, string> split_list_to_map(const list<string> &l, char delimiter); 00015 }; 00016 00017 #endif // _HELPERS__H_