mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
even more tests
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
#include "ToString.h"
|
||||
|
||||
namespace sls {
|
||||
|
||||
std::string ToString(const std::vector<std::string> &vec,
|
||||
const char delimiter) {
|
||||
std::ostringstream os;
|
||||
if (vec.empty())
|
||||
return os.str();
|
||||
auto it = vec.cbegin();
|
||||
os << *it++;
|
||||
if (vec.size() > 1) {
|
||||
while (it != vec.cend())
|
||||
os << delimiter << *it++;
|
||||
}
|
||||
return os.str();
|
||||
}
|
||||
} // namespace sls
|
Reference in New Issue
Block a user