System.SysUtils.AdjustLineBreaks
Delphi
function AdjustLineBreaks(const S: string; Style: TTextLineBreakStyle): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall AdjustLineBreaks(const System::UnicodeString S, System::TTextLineBreakStyle Style = (System::TTextLineBreakStyle)(0x1))/* overload */;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.SysUtils.pas System.SysUtils.hpp |
System.SysUtils | System.SysUtils |
Description
AdjustLineBreaks adjusts all line breaks in the given string to the indicated style.
When Style is tlbsCRLF, the function changes all CR characters not followed by LF and all LF characters not preceded by CR into CR/LF pairs.
When Style is tlbsLF, the function changes all CR/LF pairs and CR characters not followed by LF to LF characters.