From 0847bbb8f918e10537e55f78d548e64dd60ebf99 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Fri, 1 Apr 2005 03:33:39 +0000 Subject: Added GTK+ specific encoding calls. --- doc/ScintillaDoc.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 8f8c87a73..2c8ffaf81 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -310,6 +310,9 @@ *tr)
SCI_SETSTYLEBITS(int bits)
SCI_GETSTYLEBITS
+ SCI_TARGETASUTF8(<unused>, char *s)
+ SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded)
+ SCI_SETLENGTHFORENCODE(int bytes)

SCI_GETTEXT(int length, char *text)
@@ -467,6 +470,25 @@ struct TextRange { }; +

GTK+-specific: 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. +

+ +

SCI_ENCODEDFROMUTF8(const char *utf8, char *encoded)
+ SCI_SETLENGTHFORENCODE(int bytes)
+ SCI_ENCODEDFROMUTF8 converts a UTF-8 string into the document's + encoding which is useful for taking the results of a find dialog, for example, and receiving + a string of bytes that can be searched for in the document. Since the text can contain nul bytes, + the SCI_SETLENGTHFORENCODE method can be used to set the + length that will be converted. If set to -1, the length is determined by finding a nul byte. + The length of the converted string is returned. +

+ +

Searching

SCI_FINDTEXT(int flags, TextToFind *ttf)
-- cgit v1.2.3