| 82 | } |
| 83 | |
| 84 | string rtrim(const string &str) { |
| 85 | string s(str); |
| 86 | |
| 87 | s.erase( |
| 88 | find_if(s.rbegin(), s.rend(), not1(ptr_fun<int, int>(isspace))).base(), |
| 89 | s.end() |
| 90 | ); |
| 91 | |
| 92 | return s; |
| 93 | } |
| 94 | |
| 95 | vector<string> split(const string &str) { |
| 96 | vector<string> tokens; |
no outgoing calls
no test coverage detected