Add length parameter to AddTextRaw and AppendTextRaw. Closes #1358

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2012-02-07 23:55:07 +00:00
parent 49a63afbad
commit 6f67e6d2e4
5 changed files with 28 additions and 25 deletions

View File

@@ -360,14 +360,9 @@ public:
void AddText(const wxString& text);
/**
The following methods are nearly equivalent to their similarly named
cousins above. The difference is that these methods bypass wxString
and always use a char* even if used in a unicode build of wxWidgets.
In that case the character data will be utf-8 encoded since that is
what is used internally by Scintilla in unicode builds.
Add text to the document at current position.
Add raw text to the document at current position.
*/
void AddTextRaw(const char* text);
void AddTextRaw(const char* text, int length=-1);
/**
Enlarge the document to a particular size of text bytes.
@@ -382,7 +377,7 @@ public:
/**
Append a string to the end of the document without changing the selection.
*/
void AppendTextRaw(const char* text);
void AppendTextRaw(const char* text, int length=-1);
/**
Is there an auto-completion list visible?