Sign in Join
FPDoc Onlineexperiment

ChangeLineEndings function

In unit CsvReadWrite

Change the line endings in a string.

Declaration

pascal
function ChangeLineEndings(const AString: string; 
 const ALineEnding: string): string

Arguments

AString

The string to transform.

ALineEnding

LineEnding to use in the returned string.

Function result

aString with all possible line ending characters replaced with aLineEnding.

Description

ChangeLineEndings is a utility function which changes the line ending characters CR, CR/LF and LF in Astring to the specified line ending aLineEnding. It returns the transformed string.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.