| 220 | } |
| 221 | |
| 222 | void OHDUtil::rtrim(std::string& s) { |
| 223 | s.erase(std::find_if(s.rbegin(), s.rend(), |
| 224 | [](unsigned char ch) { return !std::isspace(ch); }) |
| 225 | .base(), |
| 226 | s.end()); |
| 227 | } |
| 228 | |
| 229 | std::string OHDUtil::create_command_with_args( |
| 230 | const std::string& command, const std::vector<std::string>& args) { |