aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authormitchell <unknown>2018-05-25 17:21:46 -0400
committermitchell <unknown>2018-05-25 17:21:46 -0400
commit8bda8cce4b5daf0bc785401a887331182e4f2b74 (patch)
treec7adba12e4815cdf34e3803aca4b85178582834a /src/Document.h
parent96cf9078786ae2e4a8aaf56468e6d069e73ed9c0 (diff)
downloadscintilla-mirror-8bda8cce4b5daf0bc785401a887331182e4f2b74.tar.gz
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.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h3
1 files changed, 3 insertions, 0 deletions
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;