diff options
| author | nyamatongwe <unknown> | 2000-04-06 08:43:00 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2000-04-06 08:43:00 +0000 |
| commit | f129e6862882879aed3c8338243dbb43c17721ed (patch) | |
| tree | 1352720978356ddc213962ccf1dc248c3b061491 /include | |
| parent | dae4eea6225cd2f3ed9f2e4dfe46606cc9a0743f (diff) | |
| download | scintilla-mirror-f129e6862882879aed3c8338243dbb43c17721ed.tar.gz | |
Initial Unicode support code.
Diffstat (limited to 'include')
| -rw-r--r-- | include/Platform.h | 5 | ||||
| -rw-r--r-- | include/Scintilla.h | 3 |
2 files changed, 8 insertions, 0 deletions
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 |
