MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / replace_all

Function replace_all

test/jit.cpp:500–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498};
499
500void replace_all(std::string& str, const std::string& oldStr,
501 const std::string& newStr) {
502 std::string::size_type pos = 0u;
503 while ((pos = str.find(oldStr, pos)) != std::string::npos) {
504 str.replace(pos, oldStr.length(), newStr);
505 pos += newStr.length();
506 }
507}
508
509std::string concat_dim4(dim4 d) {
510 std::stringstream ss;

Callers 1

concat_dim4Function · 0.70

Calls 1

findMethod · 0.80

Tested by

no test coverage detected