diff options
author | Neil <nyamatongwe@gmail.com> | 2018-04-25 16:26:57 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-04-25 16:26:57 +1000 |
commit | e5bf102b598a88c1c13e4f83264b652e85c75f22 (patch) | |
tree | dde6b05c11bc47d544b352ce2df837e97f73ff74 /win32/ScintillaWin.cxx | |
parent | acdf3d281be64973db955a6ae6ef4e1d5dac9a5c (diff) | |
download | scintilla-mirror-e5bf102b598a88c1c13e4f83264b652e85c75f22.tar.gz |
Backport: Standardized signature of TargetAsUTF8 and EncodedFromUTF8.
Backport of changeset 6737:5c4aea8a1e8a.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 9a44e71b6..45b1f0d4a 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -306,7 +306,7 @@ class ScintillaWin : void StartDrag() override; static int MouseModifiers(uptr_t wParam); - Sci::Position TargetAsUTF8(char *text); + Sci::Position TargetAsUTF8(char *text) const; void AddCharUTF16(wchar_t const *wcs, unsigned int wclen); Sci::Position EncodedFromUTF8(const char *utf8, char *encoded) const; sptr_t WndPaint(uptr_t wParam); @@ -747,7 +747,7 @@ static std::wstring StringMapCase(const std::wstring &ws, DWORD mapFlags) { // Returns the target converted to UTF8. // Return the length in bytes. -Sci::Position ScintillaWin::TargetAsUTF8(char *text) { +Sci::Position ScintillaWin::TargetAsUTF8(char *text) const { Sci::Position targetLength = targetEnd - targetStart; if (IsUnicodeMode()) { if (text) { |