From f129e6862882879aed3c8338243dbb43c17721ed Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 6 Apr 2000 08:43:00 +0000 Subject: Initial Unicode support code. --- include/Platform.h | 5 +++++ include/Scintilla.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'include') diff --git a/include/Platform.h b/include/Platform.h index 021bcf686..1ac931ce2 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -221,6 +221,7 @@ public: // A surface abstracts a place to draw class Surface { private: + bool unicodeMode; #if PLAT_GTK GdkDrawable *drawable; GdkGC *gc; @@ -293,6 +294,10 @@ public: int SetPalette(Palette *pal, bool inBackGround); void SetClip(PRectangle rc); void FlushCachedState(); + + void SetUnicodeMode(bool unicodeMode_) { + unicodeMode=unicodeMode_; + } }; // Class to hide the details of window manipulation diff --git a/include/Scintilla.h b/include/Scintilla.h index 822b2ea9d..f39ce4535 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -107,6 +107,9 @@ extern "C" { #define SCI_STARTSTYLING SCI_START + 32 #define SCI_SETSTYLING SCI_START + 33 +// This is the same value as CP_UTF8 in Windows +#define SC_CP_UTF8 65001 + #define SCI_SETBUFFEREDDRAW SCI_START + 35 #define SCI_SETTABWIDTH SCI_START + 36 #define SCI_SETCODEPAGE SCI_START + 37 -- cgit v1.2.3