Change the line endings in a string
Source position: csvreadwrite.pp line 182
function ChangeLineEndings( |
const AString: string; |
const ALineEnding: string |
):string; |
AString |
|
The string to tranform |
ALineEnding |
|
LineEnding to use in the returned string |
aString with all possible line ending characters replaced with aLineEnding
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.