MCPcopy Create free account
hub / github.com/ml-explore/mlx / str_split

Function str_split

mlx/backend/cpu/jit_compiler.cpp:18–26  ·  view source on GitHub ↗

Split string into array.

Source from the content-addressed store, hash-verified

16
17// Split string into array.
18std::vector<std::string> str_split(const std::string& str, char delimiter) {
19 std::vector<std::string> tokens;
20 std::string token;
21 std::istringstream tokenStream(str);
22 while (std::getline(tokenStream, token, delimiter)) {
23 tokens.push_back(token);
24 }
25 return tokens;
26}
27
28// Get path information about MSVC.
29struct VisualStudioInfo {

Callers 1

VisualStudioInfoMethod · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected