From 4eca2124896b93b8a542811edeb9d930bdae0668 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Sun, 17 Nov 2024 10:08:59 +1100 Subject: Feature [feature-requests:#1533]. More performance for SCI_BRACEMATCH by avoiding costly NextPosition call where possible. Approximately 60% improvement on tested system. --- src/Document.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 01c608d0e..cecf02899 100644 --- a/src/Document.h +++ b/src/Document.h @@ -369,6 +369,7 @@ public: bool SCI_METHOD IsDBCSLeadByte(char ch) const override; bool IsDBCSLeadByteNoExcept(char ch) const noexcept; bool IsDBCSTrailByteNoExcept(char ch) const noexcept; + unsigned char DBCSMinTrailByte() const noexcept; int DBCSDrawBytes(std::string_view text) const noexcept; bool IsDBCSDualByteAt(Sci::Position pos) const noexcept; size_t SafeSegment(std::string_view text) const noexcept; -- cgit v1.2.3