MCPcopy Create free account
hub / github.com/blender/cycles / string_replace

Function string_replace

src/util/string.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void string_replace(string &haystack, const string &needle, const string &other)
146{
147 size_t i = 0;
148 size_t index;
149 while ((index = haystack.find(needle, i)) != string::npos) {
150 haystack.replace(index, needle.size(), other);
151 i = index + other.size();
152 }
153}
154
155void string_replace_same_length(string &haystack, const string &needle, const string &other)
156{

Callers 4

add_imageMethod · 0.85
TESTFunction · 0.85
string_remove_trademarkFunction · 0.85
path_escapeFunction · 0.85

Calls 2

findMethod · 0.45
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68