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

Method str_vec_as_string

OpenHD/ohd_common/src/openhd_util.cpp:285–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285std::string OHDUtil::str_vec_as_string(const std::vector<std::string>& v) {
286 std::stringstream ss;
287 ss << "[";
288 for (int i = 0; i < v.size(); i++) {
289 ss << v[i];
290 // ss<<v[i];
291 if (i != v.size() - 1) {
292 ss << ",";
293 }
294 }
295 ss << "]";
296 return ss.str();
297}
298
299float OHDUtil::map_int_percentage_to_minus1_to_1(int percentage) {
300 if (percentage < 0 || percentage > 100) {

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected