From 521ef7054806424c97dac5ee71b3a05ed5b9d7f4 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Mon, 21 May 2018 15:15:34 +1000 Subject: Draw invalid bytes in DBCS when detected as blobs in a similar way to UTF-8. --- src/Document.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 0edf0b76e..db6d79066 100644 --- a/src/Document.h +++ b/src/Document.h @@ -309,6 +309,9 @@ public: int SCI_METHOD CodePage() const override; bool SCI_METHOD IsDBCSLeadByte(char ch) const override; bool IsDBCSLeadByteNoExcept(char ch) const noexcept; + bool IsDBCSLeadByteInvalid(char ch) const noexcept; + bool IsDBCSTrailByteInvalid(char ch) const noexcept; + int DBCSDrawBytes(std::string_view text) const noexcept; int SafeSegment(const char *text, int length, int lengthSegment) const; EncodingFamily CodePageFamily() const; -- cgit v1.2.3