aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authorZufu Liu <unknown>2021-10-21 22:15:57 +1100
committerZufu Liu <unknown>2021-10-21 22:15:57 +1100
commit9975609bf3b39f0e1cd121995ac49aea30a6c48f (patch)
tree339887d2052a909480b4e3b4df12f318bbec2be8 /src/Document.h
parenta989b1ed63c7cf81c693da8f2f66ab5e29ee341a (diff)
downloadscintilla-mirror-9975609bf3b39f0e1cd121995ac49aea30a6c48f.tar.gz
Feature [feature-requests:#1417] Use backward iteration to find space / control
character and text / punctuation boundaries in SafeSegment as will be simpler and faster in almost all cases. Simplify BreakFinder::Next calling SafeSegment.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.h b/src/Document.h
index 897a1270c..e406118a7 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -352,7 +352,7 @@ public:
bool IsDBCSTrailByteNoExcept(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 lengthSegment) const noexcept;
+ size_t SafeSegment(std::string_view text) const noexcept;
EncodingFamily CodePageFamily() const noexcept;
// Gateways to modifying document