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

Function string_join

smallthinker/common/common.cpp:472–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472std::string string_join(const std::vector<std::string> & values, const std::string & separator) {
473 std::ostringstream result;
474 for (size_t i = 0; i < values.size(); ++i) {
475 if (i > 0) {
476 result << separator;
477 }
478 result << values[i];
479 }
480 return result.str();
481}
482
483std::vector<std::string> string_split(const std::string & str, const std::string & delimiter) {
484 std::vector<std::string> parts;

Callers 13

test_regexFunction · 0.85
_generate_union_ruleMethod · 0.85
_visit_patternMethod · 0.85
visitMethod · 0.85
check_errorsMethod · 0.85
common_sampler_initFunction · 0.85
expect_tool_parametersFunction · 0.85

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by 1

test_regexFunction · 0.68