15 static inline std::string <rim(std::string &s) {
16 s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(std::isspace))));
22 static inline std::string &rtrim(std::string &s) {
23 s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
29 static inline std::string &trim(std::string &s) {
30 return ltrim(rtrim(s));