aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-06-01 13:31:58 +0000
committernyamatongwe <devnull@localhost>2004-06-01 13:31:58 +0000
commit77a447e9645e3c03061c7c9a8ad61921ced8be3d (patch)
treeb163413284fbcee8ee0a21de6c79bd1c7f47f2f0 /include
parentb252c4dc9752c17f10ca225120cc338561e1b11a (diff)
downloadscintilla-mirror-77a447e9645e3c03061c7c9a8ad61921ced8be3d.tar.gz
Patch for allowing retrieval of document text encoded as
UTF-8 and converting from UTF-8 to the document encoding.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h3
-rw-r--r--include/Scintilla.iface13
2 files changed, 16 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 1a4e48872..78f3e093e 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -583,6 +583,9 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_SETCHARSDEFAULT 2444
#define SCI_AUTOCGETCURRENT 2445
#define SCI_ALLOCATE 2446
+#define SCI_TARGETASUTF8 2447
+#define SCI_SETLENGTHFORENCODE 2448
+#define SCI_ENCODEDFROMUTF8 2449
#define SCI_STARTRECORD 3001
#define SCI_STOPRECORD 3002
#define SCI_SETLEXER 4001
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index a430db791..3997c3c64 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1582,6 +1582,19 @@ fun int AutoCGetCurrent=2445(,)
# Enlarge the document to a particular size of text bytes.
fun void Allocate=2446(int bytes,)
+# Returns the target converted to UTF8.
+# Return the length in bytes.
+fun int TargetAsUTF8=2447(, stringresult s)
+
+# Set the length of the utf8 argument for calling EncodedFromUTF8.
+# Set to 0 and the string will be measured to the first nul.
+fun void SetLengthForEncode=2448(int bytes,)
+
+# Translates a UTF8 string into the document encoding.
+# Return the length of the result in bytes.
+# On error return 0.
+fun int EncodedFromUTF8=2449(string utf8, stringresult encoded)
+
# Start notifying the container of all key presses and commands.
fun void StartRecord=3001(,)