MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ReplaceAll

Method ReplaceAll

editor/ScriptEditorDlg.cpp:333–339  ·  view source on GitHub ↗

This will start from the beginning and replace all the occurences

Source from the content-addressed store, hash-verified

331
332// This will start from the beginning and replace all the occurences
333void CScriptEditorDlg::ReplaceAll(char *find_word, char *replace_word) {
334 SetCurrentIndex(0);
335 m_LastWord = " ";
336 while (FindNext(find_word)) {
337 ReplaceSelected(replace_word);
338 }
339}
340
341// This only replaces the selected string with the replace_word
342void CScriptEditorDlg::ReplaceCurrent(char *replace_word) { ReplaceSelected(replace_word); }

Callers 1

OnFindReplaceMethod · 0.45

Calls 1

SetCurrentIndexFunction · 0.85

Tested by

no test coverage detected