MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / string_split

Function string_split

common/common.h:713–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

711
712template<class T>
713static std::vector<T> string_split(const std::string & str, char delim) {
714 static_assert(!std::is_same<T, std::string>::value, "Please use the specialized version for std::string");
715 std::vector<T> values;
716 std::istringstream str_stream(str);
717 std::string token;
718 while (std::getline(str_stream, token, delim)) {
719 T value;
720 std::istringstream token_stream(token);
721 token_stream >> value;
722 values.push_back(value);
723 }
724 return values;
725}
726
727template<>
728inline std::vector<std::string> string_split<std::string>(const std::string & str, char delim)

Callers 7

_visit_patternMethod · 0.70
resolve_refsMethod · 0.70
mainFunction · 0.50
test_example_nativeFunction · 0.50
test_example_qwen3_coderFunction · 0.50

Calls 1

push_backMethod · 0.45

Tested by 4

mainFunction · 0.40
test_example_nativeFunction · 0.40
test_example_qwen3_coderFunction · 0.40