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

Function string_repeat

common/common.cpp:494–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494std::string string_repeat(const std::string & str, size_t n) {
495 if (n == 0) {
496 return "";
497 }
498
499 std::string result;
500 result.reserve(str.length() * n);
501
502 for (size_t i = 0; i < n; ++i) {
503 result += str;
504 }
505
506 return result;
507}
508
509std::string string_from(bool value) {
510 return value ? "true" : "false";

Callers 1

build_min_max_intFunction · 0.85

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected