aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2013-05-25 23:44:29 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2013-05-25 23:44:29 +1000
commit18b23849f6f6ce92b062dfc6738c36da97e8ccd8 (patch)
tree8f659e9866ceb0d137a7f908510bb35db9442f7a
parent42380cad05e07e91df24fbb32b93e59ec7e52054 (diff)
downloadscintilla-mirror-18b23849f6f6ce92b062dfc6738c36da97e8ccd8.tar.gz
Add a simplified way to set a SelectionText from a std::string.
-rw-r--r--src/Editor.h3
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);
}