MCPcopy Create free account
hub / github.com/OpenAtomFoundation/pikiwidb / Set2String

Function Set2String

src/pstd/src/pstd_string.cc:612–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612std::string Set2String(const std::unordered_set<std::string>& elems, char delim) {
613 std::string value;
614 for (const auto &e : elems) {
615 value.append(e);
616 value.append(1, delim);
617 }
618 if (!value.empty()) {
619 value.resize(value.size() - 1);
620 }
621 return value;
622}
623
624std::string StringConcat(const std::vector<std::string>& elems, char delim) {
625 std::string result;

Callers 6

ConfigRewriteMethod · 0.50
GetSlowCmdMethod · 0.50
GetAdminCmdMethod · 0.50

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected