This will start from the beginning and replace all the occurences
| 545 | |
| 546 | // This will start from the beginning and replace all the occurences |
| 547 | void CScriptStudio::ReplaceAll(char *find_word, char *replace_word) { |
| 548 | SetCurrentIndex(0); |
| 549 | m_LastWord = " "; |
| 550 | while (FindNext(find_word)) { |
| 551 | ReplaceSelected(replace_word); |
| 552 | } |
| 553 | } |
| 554 | |
| 555 | // This only replaces the selected string with the replace_word |
| 556 | void CScriptStudio::ReplaceCurrent(char *replace_word) { ReplaceSelected(replace_word); } |
no test coverage detected