diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2013-05-25 23:44:29 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2013-05-25 23:44:29 +1000 |
commit | 18b23849f6f6ce92b062dfc6738c36da97e8ccd8 (patch) | |
tree | 8f659e9866ceb0d137a7f908510bb35db9442f7a | |
parent | 42380cad05e07e91df24fbb32b93e59ec7e52054 (diff) | |
download | scintilla-mirror-18b23849f6f6ce92b062dfc6738c36da97e8ccd8.tar.gz |
Add a simplified way to set a SelectionText from a std::string.
-rw-r--r-- | src/Editor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h index 3888d2b87..46167cf4a 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -113,6 +113,9 @@ public: lineCopy = lineCopy_; FixSelectionForClipboard(); } + void Copy(const std::string &s, int codePage_, int characterSet_, bool rectangular_, bool lineCopy_) { + Copy(s.c_str(), s.length()+1, codePage_, characterSet_, rectangular_, lineCopy_); + } void Copy(const SelectionText &other) { Copy(other.s, other.len, other.codePage, other.characterSet, other.rectangular, other.lineCopy); } |