| 210 | } |
| 211 | |
| 212 | std::string OHDUtil::create_string_from_lines( |
| 213 | const std::vector<std::string>& lines) { |
| 214 | std::stringstream ss; |
| 215 | for (const auto& line : lines) { |
| 216 | assert(OHDUtil::endsWith(line, "\n")); |
| 217 | ss << line; |
| 218 | } |
| 219 | return ss.str(); |
| 220 | } |
| 221 | |
| 222 | void OHDUtil::rtrim(std::string& s) { |
| 223 | s.erase(std::find_if(s.rbegin(), s.rend(), |
nothing calls this directly
no test coverage detected