diff options
author | Zufu Liu <unknown> | 2023-01-12 22:02:24 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2023-01-12 22:02:24 +1100 |
commit | 7ac090022ebef882b2b403174b06a3edf391e705 (patch) | |
tree | ef5e64fb038313bc7f5594b725f4869d74ccb1f3 /src/Document.h | |
parent | d57b40b5d815504ccd726ed5f2457df097141fd3 (diff) | |
download | scintilla-mirror-7ac090022ebef882b2b403174b06a3edf391e705.tar.gz |
Feature [feature-requests:#1474] Move EOL string function to Document and return
string_view.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 8d5643e90..9f4811073 100644 --- a/src/Document.h +++ b/src/Document.h @@ -420,6 +420,7 @@ public: void Indent(bool forwards, Sci::Line lineBottom, Sci::Line lineTop); static std::string TransformLineEnds(const char *s, size_t len, Scintilla::EndOfLine eolModeWanted); void ConvertLineEnds(Scintilla::EndOfLine eolModeSet); + std::string_view EOLString() const noexcept; void SetReadOnly(bool set) { cb.SetReadOnly(set); } bool IsReadOnly() const noexcept { return cb.IsReadOnly(); } bool IsLarge() const noexcept { return cb.IsLarge(); } |