MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / replace

Function replace

utils/daScript/main.cpp:415–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413}
414
415void replace( string& str, const string& from, const string& to ) {
416 size_t it = str.find(from);
417 if( it != string::npos ) {
418 str.replace(it, from.length(), to);
419 }
420}
421
422void print_help() {
423 tout

Callers 4

MAIN_FUNC_NAMEFunction · 0.85
getModuleFileNameFunction · 0.85
getDasRootFunction · 0.85
replaceMethod · 0.85

Calls 3

replaceMethod · 0.80
findMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected