MCPcopy Create free account
hub / github.com/asmuth/clip / join

Method join

src/utils/stringutil.cc:173–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173String StringUtil::join(const Vector<String>& list, const String& join) {
174 String out;
175
176 for (size_t i = 0; i < list.size(); ++i) {
177 if (i > 0) {
178 out += join;
179 }
180
181 out += list[i];
182 }
183
184 return out;
185}
186
187String StringUtil::join(const Set<String>& list, const String& join) {
188 String out;

Callers 3

build_page_cmdrefFunction · 0.80
build_page_mdFunction · 0.80
mainFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected