From 5f88849f4e0784056efcea8aaea2138aebdf3dfe Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 25 Apr 2018 16:26:57 +1000 Subject: Standardized signature of TargetAsUTF8 and EncodedFromUTF8. --- cocoa/ScintillaCocoa.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa/ScintillaCocoa.mm') diff --git a/cocoa/ScintillaCocoa.mm b/cocoa/ScintillaCocoa.mm index a9009f073..3be2c6b98 100644 --- a/cocoa/ScintillaCocoa.mm +++ b/cocoa/ScintillaCocoa.mm @@ -1574,7 +1574,7 @@ bool ScintillaCocoa::GetPasteboardData(NSPasteboard *board, SelectionText *selec // Returns the target converted to UTF8. // Return the length in bytes. -ptrdiff_t ScintillaCocoa::TargetAsUTF8(char *text) { +Sci::Position ScintillaCocoa::TargetAsUTF8(char *text) const { const Sci::Position targetLength = targetEnd - targetStart; if (IsUnicodeMode()) { if (text) @@ -1675,7 +1675,7 @@ NSRect ScintillaCocoa::GetBounds() const { // Translates a UTF8 string into the document encoding. // Return the length of the result in bytes. -ptrdiff_t ScintillaCocoa::EncodedFromUTF8(char *utf8, char *encoded) const { +Sci::Position ScintillaCocoa::EncodedFromUTF8(const char *utf8, char *encoded) const { const size_t inputLength = (lengthForEncode >= 0) ? lengthForEncode : strlen(utf8); if (IsUnicodeMode()) { if (encoded) -- cgit v1.2.3