MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / replaceAll

Function replaceAll

engine/source/meta_parser/parser/meta/meta_utils.cpp:282–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 }
281
282 void replaceAll(std::string& resource_str, std::string sub_str, std::string new_str)
283 {
284 std::string::size_type pos = 0;
285 while ((pos = resource_str.find(sub_str)) != std::string::npos)
286 {
287 resource_str = resource_str.replace(pos, sub_str.length(), new_str);
288 }
289 return;
290 }
291
292 unsigned long formatPathString(const std::string& path_string, std::string& out_string)
293 {

Callers 3

ClassMethod · 0.85
FieldMethod · 0.85
formatPathStringFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected