From 199d7ee000fcb1ce24d3f4a919dc825e6c0d2f45 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 22 Jul 2013 19:36:55 +1000 Subject: Added the character representation feature. --- src/UniConversion.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/UniConversion.cxx') 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 -- cgit v1.2.3