| 122 | } |
| 123 | |
| 124 | void StringUtil::stripTrailingSlashes(std::string* str) { |
| 125 | while (str->back() == '/') { |
| 126 | str->pop_back(); |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | void StringUtil::chomp(std::string* str) { |
| 131 | while (str->back() == '\n' || str->back() == '\r') { |
nothing calls this directly
no outgoing calls
no test coverage detected