diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-22 19:36:55 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-22 19:36:55 +1000 |
commit | 199d7ee000fcb1ce24d3f4a919dc825e6c0d2f45 (patch) | |
tree | 12c648fe19907c70867438641fa36ee550923847 /src/UniConversion.cxx | |
parent | 47792a5650ed6c70b05ccf1c33cce015d032bd04 (diff) | |
download | scintilla-mirror-199d7ee000fcb1ce24d3f4a919dc825e6c0d2f45.tar.gz |
Added the character representation feature.
Diffstat (limited to 'src/UniConversion.cxx')
-rw-r--r-- | src/UniConversion.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx index 1973dc7f2..b769250c8 100644 --- a/src/UniConversion.cxx +++ b/src/UniConversion.cxx @@ -255,6 +255,11 @@ int UTF8Classify(const unsigned char *us, int len) { } } +int UTF8DrawBytes(const unsigned char *us, int len) { + int utf8StatusNext = UTF8Classify(us, len); + return (utf8StatusNext & UTF8MaskInvalid) ? 1 : (utf8StatusNext & UTF8MaskWidth); +} + #ifdef SCI_NAMESPACE } #endif |