From 04477a781d31e2c4e3b10cfe09d7c025fd897421 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 16 Feb 2015 11:13:24 +1100 Subject: Implement SCI_TARGETASUTF8 and SCI_ENCODEDFROMUTF8 on Cocoa. --- doc/ScintillaDoc.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 46039ed54..1749fa1f9 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -585,12 +585,14 @@ struct Sci_TextRange { }; -

GTK+-specific: Access to encoded text

+

Specific to GTK+ and Cocoa only: Access to encoded text

SCI_TARGETASUTF8(<unused>, char *s)
This method retrieves the value of the target encoded as UTF-8 which is the default encoding of GTK+ so is useful for retrieving text for use in other parts of the user interface, such as find and replace dialogs. The length of the encoded text in bytes is returned. + Cocoa uses UTF-16 which is easily converted from UTF-8 so this method can be used to perform the + more complex work of transcoding from the various of encodings supported.

SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded)
-- cgit v1.2.3