MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / joinString

Function joinString

plugins/wasi_nn/MLX/model/utils.cpp:21–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21std::string joinString(std::vector<std::string> &S, char Delim) {
22 std::string Result;
23 for (size_t Idx = 0; Idx < S.size(); Idx++) {
24 Result += S[Idx];
25 if (Idx != S.size() - 1) {
26 Result += Delim;
27 }
28 }
29 return Result;
30}
31
32bool endsWith(std::string const &Value, std::string const &Ending) {
33 if (Ending.size() > Value.size())

Callers 1

applyMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected