From 8bda8cce4b5daf0bc785401a887331182e4f2b74 Mon Sep 17 00:00:00 2001 From: mitchell Date: Fri, 25 May 2018 17:21:46 -0400 Subject: Backport: Draw invalid bytes in DBCS when detected as blobs in a similar way to UTF-8. Backport of changeset 6962:514fde42ccbf, but without std::string_view. --- 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 b4639a9c2..42f9d36ce 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(const char *text, int len) const noexcept; int SafeSegment(const char *text, int length, int lengthSegment) const; EncodingFamily CodePageFamily() const; -- cgit v1.2.3