| 808 | } |
| 809 | |
| 810 | void TextDocument::toLowerSelection() { |
| 811 | for ( size_t i = 0; i < mSelection.size(); ++i ) { |
| 812 | TextRange selection( getSelectionIndex( i ) ); |
| 813 | String selectedText( getSelectedText( i ) ); |
| 814 | selectedText.toLower(); |
| 815 | deleteSelection( i ); |
| 816 | insert( i, getSelectionIndex( i ).start(), selectedText ); |
| 817 | setSelection( i, selection ); |
| 818 | } |
| 819 | } |
| 820 | |
| 821 | std::string TextDocument::getLoadingFilePath() const { |
| 822 | Lock l( mLoadingFilePathMutex ); |