MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / repeat

Function repeat

scripts/test_stringzilla.hpp:192–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192inline std::string repeat(std::string const &patten, std::size_t count) noexcept(false) {
193 std::string result(patten.size() * count, '\0');
194 for (std::size_t i = 0; i < count; ++i) std::copy(patten.begin(), patten.end(), result.begin() + i * patten.size());
195 return result;
196}
197
198/**
199 * @brief Randomly slices a string into consecutive parts and passes those to @p slice_callback.

Callers 1

test_hash_equivalenceFunction · 0.85

Calls 4

copyFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…