14#ifndef ROOT_StringUtils
15#define ROOT_StringUtils
25std::vector<std::string>
Split(std::string_view str, std::string_view delims,
bool skipEmpty =
false);
34template <
class StringCollection_t>
35std::string
Join(
const std::string &sep, StringCollection_t &&strings)
39 return std::accumulate(std::next(std::begin(strings)), std::end(strings), strings[0],
40 [&sep](
auto const &
a,
auto const &
b) {
return a + sep +
b; });
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
std::string Join(const std::string &sep, StringCollection_t &&strings)
Concatenate a list of strings with a separator.
std::vector< std::string > Split(std::string_view str, std::string_view delims, bool skipEmpty=false)
Splits a string at each character in delims.