MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / split_string

Function split_string

examples/parallel/parallel.cpp:88–96  ·  view source on GitHub ↗

Define a split string function to ...

Source from the content-addressed store, hash-verified

86
87// Define a split string function to ...
88static std::vector<std::string> split_string(const std::string& input, char delimiter) {
89 std::vector<std::string> tokens;
90 std::istringstream stream(input);
91 std::string token;
92 while (std::getline(stream, token, delimiter)) {
93 tokens.push_back(token);
94 }
95 return tokens;
96}
97
98int main(int argc, char ** argv) {
99 srand(1234);

Callers 1

mainFunction · 0.70

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected