From 7ac090022ebef882b2b403174b06a3edf391e705 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 12 Jan 2023 22:02:24 +1100 Subject: Feature [feature-requests:#1474] Move EOL string function to Document and return string_view. --- 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 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(); } -- cgit v1.2.3