MCPcopy Create free account
hub / github.com/docopt/docopt.cpp / join

Function join

docopt_util.h:88–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87 template <typename I>
88 std::string join(I iter, I end, std::string const& delim) {
89 if (iter==end)
90 return {};
91
92 std::string ret = *iter;
93 for(++iter; iter!=end; ++iter) {
94 ret.append(delim);
95 ret.append(*iter);
96 }
97 return ret;
98 }
99
100 std::vector<std::string> regex_split(std::string const& text, std::regex const& re)
101 {

Callers 3

the_restMethod · 0.85
parse_longFunction · 0.85
docopt_parseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected