MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / string_join

Function string_join

subprojects/llama.cpp/common/common.cpp:492–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492std::string string_join(const std::vector<std::string> & values, const std::string & separator) {
493 std::ostringstream result;
494 for (size_t i = 0; i < values.size(); ++i) {
495 if (i > 0) {
496 result << separator;
497 }
498 result << values[i];
499 }
500 return result.str();
501}
502
503std::vector<std::string> string_split(const std::string & str, const std::string & delimiter) {
504 std::vector<std::string> parts;

Callers 15

full_nameMethod · 0.85
test_regexFunction · 0.85
_generate_union_ruleMethod · 0.85
_visit_patternMethod · 0.85
visitMethod · 0.85
check_errorsMethod · 0.85
dumpMethod · 0.85
build_grammarMethod · 0.85
expect_tool_parametersFunction · 0.85

Calls 2

sizeMethod · 0.65
strMethod · 0.45

Tested by 2

full_nameMethod · 0.68
test_regexFunction · 0.68