Replaces the selected word with the passed word
| 530 | |
| 531 | // Replaces the selected word with the passed word |
| 532 | void CScriptStudio::ReplaceSelected(char *replace_word) { |
| 533 | long start_index, end_index; |
| 534 | |
| 535 | UpdateData(false); |
| 536 | |
| 537 | m_RichEdit.SetFocus(); |
| 538 | m_RichEdit.GetSel(start_index, end_index); |
| 539 | m_RichEdit.ReplaceSel(replace_word); |
| 540 | |
| 541 | UpdateData(); |
| 542 | |
| 543 | SetCurrentIndex(start_index); |
| 544 | } |
| 545 | |
| 546 | // This will start from the beginning and replace all the occurences |
| 547 | void CScriptStudio::ReplaceAll(char *find_word, char *replace_word) { |
nothing calls this directly
no test coverage detected