diff options
| author | nyamatongwe <unknown> | 2003-01-12 04:47:00 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-01-12 04:47:00 +0000 |
| commit | 84af7c9bf2bb053710de2326351bf985dc883d00 (patch) | |
| tree | 7b9a98aafa75f52c0192a036524cd14e1c92656b /win32 | |
| parent | d9a4d7a7fb0446e59488be6bf1d529538ccdd143 (diff) | |
| download | scintilla-mirror-84af7c9bf2bb053710de2326351bf985dc883d00.tar.gz | |
Changes to make DBCS work on GTK+ and handle DBCS sequences longer than 2 bytes.
Diffstat (limited to 'win32')
| -rw-r--r-- | win32/PlatWin.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 6e2ff1b1a..546b278db 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -1271,6 +1271,14 @@ bool Platform::IsDBCSLeadByte(int codePage, char ch) { return ::IsDBCSLeadByteEx(codePage, ch) != 0; } +int Platform::DBCSCharLength(int codePage, const char *s) { + return (::IsDBCSLeadByteEx(codePage, s[0]) != 0) ? 2 : 1; +} + +int Platform::DBCSCharMaxLength() { + return 2; +} + // These are utility functions not really tied to a platform int Platform::Minimum(int a, int b) { |
