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

Function splitString

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

Source from the content-addressed store, hash-verified

9namespace WasmEdge::Host::WASINN::MLX {
10
11std::vector<std::string> splitString(const std::string &S, char Delim) {
12 std::vector<std::string> Result;
13 std::stringstream SS(S);
14 std::string Item;
15 while (std::getline(SS, Item, Delim)) {
16 Result.emplace_back(Item);
17 }
18 return Result;
19}
20
21std::string joinString(std::vector<std::string> &S, char Delim) {
22 std::string Result;

Callers 2

applyMethod · 0.85
llamaToMlxllmFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected