aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2018-05-21 15:15:34 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2018-05-21 15:15:34 +1000
commit521ef7054806424c97dac5ee71b3a05ed5b9d7f4 (patch)
treed46c95588195f593baa1c46b0882e1c169b6b590 /src/Document.h
parent150417216d362bae78621939102f8183af951f78 (diff)
downloadscintilla-mirror-521ef7054806424c97dac5ee71b3a05ed5b9d7f4.tar.gz
Draw invalid bytes in DBCS when detected as blobs in a similar way to UTF-8.
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 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;