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

Function split_string

smallthinker/examples/parallel/parallel.cpp:145–153  ·  view source on GitHub ↗

Define a split string function to ...

Source from the content-addressed store, hash-verified

143
144// Define a split string function to ...
145static std::vector<std::string> split_string(const std::string& input, char delimiter) {
146 std::vector<std::string> tokens;
147 std::istringstream stream(input);
148 std::string token;
149 while (std::getline(stream, token, delimiter)) {
150 tokens.push_back(token);
151 }
152 return tokens;
153}
154
155int main(int argc, char ** argv) {
156 srand(1234);

Callers 1

mainFunction · 0.70

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected