MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / create_string_from_lines

Method create_string_from_lines

OpenHD/ohd_common/src/openhd_util.cpp:212–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212std::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
222void OHDUtil::rtrim(std::string& s) {
223 s.erase(std::find_if(s.rbegin(), s.rend(),

Callers

nothing calls this directly

Calls 1

endsWithFunction · 0.85

Tested by

no test coverage detected