aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authorZufu Liu <unknown>2024-11-17 10:08:59 +1100
committerZufu Liu <unknown>2024-11-17 10:08:59 +1100
commit4eca2124896b93b8a542811edeb9d930bdae0668 (patch)
tree1ebce84308d604c8b93d040e15d1a861323feff2 /src/Document.h
parent7c053368aac18001e6183c1f2e72273631cb5100 (diff)
downloadscintilla-mirror-4eca2124896b93b8a542811edeb9d930bdae0668.tar.gz
Feature [feature-requests:#1533]. More performance for SCI_BRACEMATCH by
avoiding costly NextPosition call where possible. Approximately 60% improvement on tested system.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h1
1 files changed, 1 insertions, 0 deletions
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;