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

Function replace_all

test/blas.cpp:600–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598};
599
600void replace_all(std::string &str, const std::string &oldStr,
601 const std::string &newStr) {
602 std::string::size_type pos = 0u;
603 while ((pos = str.find(oldStr, pos)) != std::string::npos) {
604 str.replace(pos, oldStr.length(), newStr);
605 pos += newStr.length();
606 }
607}
608
609std::string concat_dim4(dim4 d) {
610 std::stringstream ss;

Callers 1

concat_dim4Function · 0.70

Calls 1

findMethod · 0.80

Tested by

no test coverage detected