diff options
author | nyamatongwe <devnull@localhost> | 2003-01-12 04:47:00 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-01-12 04:47:00 +0000 |
commit | 2a92a28fc51c654890e0d44c19f923a43f2aaba0 (patch) | |
tree | 7b9a98aafa75f52c0192a036524cd14e1c92656b /gtk/PlatGTK.cxx | |
parent | 0f6182cbd4caa4e4c308e2afd3cd4fd4dfadf0af (diff) | |
download | scintilla-mirror-2a92a28fc51c654890e0d44c19f923a43f2aaba0.tar.gz |
Changes to make DBCS work on GTK+ and handle DBCS sequences longer than 2 bytes.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r-- | gtk/PlatGTK.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index ebf949566..abcc0d486 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -1697,6 +1697,14 @@ bool Platform::IsDBCSLeadByte(int /*codePage*/, char /*ch*/) { return false; } +int Platform::DBCSCharLength(int codePage, const char *s) { + return mblen(s, MB_CUR_MAX) +} + +int Platform::DBCSCharMaxLength() { + return MB_CUR_MAX; +} + // These are utility functions not really tied to a platform int Platform::Minimum(int a, int b) { |