This will start from the beginning and replace all the occurences
| 331 | |
| 332 | // This will start from the beginning and replace all the occurences |
| 333 | void 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 |
| 342 | void CScriptEditorDlg::ReplaceCurrent(char *replace_word) { ReplaceSelected(replace_word); } |
no test coverage detected