From d445efe918fb9f045d60b2fb5ef3cbef97938f44 Mon Sep 17 00:00:00 2001 From: alcexhim Date: Mon, 1 Dec 2014 13:54:01 -0500 Subject: [PATCH] Support additional newline formats --- .../IO/NewLineSequence.cs | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/CSharp/Libraries/UniversalEditor.Core/IO/NewLineSequence.cs b/CSharp/Libraries/UniversalEditor.Core/IO/NewLineSequence.cs index 48dfa1e0..49ed9920 100644 --- a/CSharp/Libraries/UniversalEditor.Core/IO/NewLineSequence.cs +++ b/CSharp/Libraries/UniversalEditor.Core/IO/NewLineSequence.cs @@ -7,9 +7,26 @@ namespace UniversalEditor.IO { public enum NewLineSequence { + /// + /// Determines the new line sequence based on the system default (CR on Mac OS up to version 9, LF on Linux, + /// CRLF on Windows). + /// Default = -1, + /// + /// Uses the carriage return ('\r', ^M, 0x0D) as the new line sequence. + /// CarriageReturn = 1, + /// + /// Uses the line feed ('\n', ^J, 0x0A) as the new line sequence. + /// LineFeed = 2, - CarriageReturnLineFeed = 3 + /// + /// Uses a combination of carriage return and line feed ("\r\n", ^M^J, {0x0D, 0x0A}) as the new line sequence. + /// + CarriageReturnLineFeed = 3, + /// + /// Uses a combination of line feed and carriage return ("\n\r", ^J^M, {0x0A, 0x0D}) as the new line sequence. + /// + LineFeedCarriageReturn = 4 } }