From 289314060dd7a44f9844cfc891d1c1d823742f94 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Mon, 5 Jul 2021 16:18:13 +1000 Subject: Feature [feature-requests:#1408] Check both bytes of potential DBCS character before treating as a character. --- src/Document.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index c40ce2a44..fe27f4936 100644 --- a/src/Document.h +++ b/src/Document.h @@ -330,8 +330,8 @@ public: bool SCI_METHOD IsDBCSLeadByte(char ch) const override; bool IsDBCSLeadByteNoExcept(char ch) const noexcept; bool IsDBCSTrailByteNoExcept(char ch) const noexcept; - bool IsDBCSLeadByteInvalid(char ch) const noexcept; int DBCSDrawBytes(std::string_view text) const noexcept; + bool IsDBCSDualByteAt(Sci::Position pos) const noexcept; int SafeSegment(const char *text, int length, int lengthSegment) const noexcept; EncodingFamily CodePageFamily() const noexcept; -- cgit v1.2.3