diff options
author | Sam Hocevar <sam@hocevar.net> | 2015-11-20 10:43:26 +1100 |
---|---|---|
committer | Sam Hocevar <sam@hocevar.net> | 2015-11-20 10:43:26 +1100 |
commit | 1f9bc0d42bc53fd04cc848da1da52635dcf7a2c0 (patch) | |
tree | c3a81badf03c26ae81cffe258df9dec094966fa7 /src/UniConversion.cxx | |
parent | 5bd63ddfe65136ace6d11ec363b4f33e10fdbb49 (diff) | |
download | scintilla-mirror-1f9bc0d42bc53fd04cc848da1da52635dcf7a2c0.tar.gz |
Bug [#1779]. Better Unicode input support on Windows systems.
- support surrogate pairs in WM_CHAR messages
- support characters from supplementary planes in WM_UNICHAR messages
- support WM_UNICHAR messages in non-Unicode mode
- fix some code duplication
Also, do not return FALSE upon receiving a WM_UNICHAR message with
a UNICODE_NOCHAR parameter, since WM_UNICHAR can actually be handled
just fine (at least with the exact same level of support as WM_CHAR).
Diffstat (limited to 'src/UniConversion.cxx')
-rw-r--r-- | src/UniConversion.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx index c12ca34c2..4da9e102a 100644 --- a/src/UniConversion.cxx +++ b/src/UniConversion.cxx @@ -19,10 +19,6 @@ using namespace Scintilla; namespace Scintilla { #endif -enum { SURROGATE_TRAIL_FIRST = 0xDC00 }; -enum { SURROGATE_TRAIL_LAST = 0xDFFF }; -enum { SUPPLEMENTAL_PLANE_FIRST = 0x10000 }; - unsigned int UTF8Length(const wchar_t *uptr, unsigned int tlen) { unsigned int len = 0; for (unsigned int i = 0; i < tlen && uptr[i];) { |