aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
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
commit579bb9e9788bb39eec1f4fdf47f96ae76efe1bd5 (patch)
tree1c0ed59e25473fd025d174b4764b118e05606662 /src
parent3eb0dea3286c294932208de6b1f6dc0e8bc4d2db (diff)
downloadscintilla-mirror-579bb9e9788bb39eec1f4fdf47f96ae76efe1bd5.tar.gz
Add a simplified way to set a SelectionText from a std::string.
Diffstat (limited to 'src')
-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);
}