MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / replace

Function replace

tools/dascript_aot/aot_cc/src/main.cpp:345–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void replace( string& str, const string& from, const string& to ) {
346 size_t it = str.find(from);
347 if( it != string::npos ) {
348 str.replace(it, from.length(), to);
349 }
350}
351
352void print_help() {
353 tout

Callers 1

MAIN_FUNC_NAMEFunction · 0.70

Calls 3

findMethod · 0.45
replaceMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected