MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / join_strings

Function join_strings

src/include/migraphx/stringutils.hpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73template <class Strings>
74inline std::string join_strings(Strings strings, const std::string& delim)
75{
76 auto it = strings.begin();
77 if(it == strings.end())
78 return "";
79
80 auto nit = std::next(it);
81 return std::accumulate(nit, strings.end(), *it, [&](std::string x, std::string y) {
82 return std::move(x) + delim + std::move(y);
83 });
84}
85
86inline std::vector<std::string> split_string(const std::string& s, char delim)
87{

Callers 15

applyMethod · 0.85
print_pyMethod · 0.85
print_cppMethod · 0.85
generate_moduleMethod · 0.85
create_functionMethod · 0.85
to_sizes_stringMethod · 0.85
processMethod · 0.85
process.cppFile · 0.85
get_argument_usagesMethod · 0.85
print_usageMethod · 0.85
parseMethod · 0.85
compileMethod · 0.85

Calls 3

accumulateFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected