Difference between revisions of "End of Line"

From Free Pascal wiki
Jump to navigationJump to search
(→‎End of line markers: LF is the official OSX newline)
m (→‎End of line markers: OS X -> macOS)
 
(8 intermediate revisions by 6 users not shown)
Line 1: Line 1:
LineEnding is end of line marker. This constant (system unit) is used when writing end of lines to text files.
+
{{End of Line}}
 +
 
 +
<tt>LineEnding</tt> is end of line marker. This [[Constant|constant]] ([[System unit|system unit]]) is used when writing end of lines to text files. In other words, it starts a new line.
  
 
== End of line markers ==
 
== End of line markers ==
  
* [[Line feed]] (LF, #10 ) Linux, OSX, BSDs, Unix, ...
+
(Better/also known as line ending characters)
* [[Carriage return]] + [[Line feed]] (CRLF #13#10) MS Windows
 
* [[Carriage return]] (CR #13)  Mac OS Classic
 
  
Mac OS X often accepts [[Line feed]] and [[Carriage return]].
+
* [[Line feed]] (LF, #10 ):  [[Linux]], macOS, BSDs, Unix
 +
* [[Carriage return]] + [[Line feed]] (CRLF, #13#10): Microsoft Windows
 +
* [[Carriage return]] (CR, #13): Mac OS Classic
 +
 
 +
macOS often accepts [[Line feed]] and [[Carriage return]].
  
 
== See also ==
 
== See also ==
Line 13: Line 17:
 
* [[doc:rtl/system/lineending.html|LineEnding]] Constant describing the current line ending character.
 
* [[doc:rtl/system/lineending.html|LineEnding]] Constant describing the current line ending character.
 
* [[doc:rtl/system/settextlineending.html|SetTextLineEnding]] Set the end-of-line character for the given text file.
 
* [[doc:rtl/system/settextlineending.html|SetTextLineEnding]] Set the end-of-line character for the given text file.
 
+
* [[doc:rtl/system/slinebreak.html|sLineBreak]] is an alias for LineEnding and is supplied for compatibility.
[[Category:Multiplatform Programming]]
 
[[Category:Platform-sensitive development]]
 

Latest revision as of 08:31, 3 July 2020

English (en) suomi (fi) русский (ru)

LineEnding is end of line marker. This constant (system unit) is used when writing end of lines to text files. In other words, it starts a new line.

End of line markers

(Better/also known as line ending characters)

macOS often accepts Line feed and Carriage return.

See also

  • LineEnding Constant describing the current line ending character.
  • SetTextLineEnding Set the end-of-line character for the given text file.
  • sLineBreak is an alias for LineEnding and is supplied for compatibility.