MCPcopy Create free account
hub / github.com/AMReX-Codes/amrex / join

Function join

Src/Base/AMReX_String.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::string join (std::vector<std::string> const& sv, char sep)
57{
58 std::string r;
59 for (auto const& s : sv) {
60 if (!r.empty()) {
61 r += sep;
62 }
63 r += s;
64 }
65 return r;
66}
67
68std::string join (std::vector<std::string> const& sv)
69{

Callers 4

addMethod · 0.85
getlineMethod · 0.85
querylineMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected