| 71 | } |
| 72 | |
| 73 | string ltrim(const string &str) { |
| 74 | string s(str); |
| 75 | |
| 76 | s.erase( |
| 77 | s.begin(), |
| 78 | find_if(s.begin(), s.end(), not1(ptr_fun<int, int>(isspace))) |
| 79 | ); |
| 80 | |
| 81 | return s; |
| 82 | } |
| 83 | |
| 84 | string rtrim(const string &str) { |
| 85 | string s(str); |
no outgoing calls
no test coverage detected