RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.AdjustLineBreaks Function

Adjusts line break characters to reflect Windows or Linux style.

Pascal
function AdjustLineBreaks(const S: string; Style: TTextLineBreakStyle = tlbsCRLF): string;
C++
AnsiString AdjustLineBreaks(const AnsiString S, TTextLineBreakStyle Style = tlbsCRLF);

SysUtils

AdjustLineBreaks returns a text string with its line breaks adjusted to fit a specified style.  

S is the string to convert. 

Style indicates whether line breaks should all be Windows-style line breaks with a carriage return and linefeed (tlbsCRLF), or Linux-style breaks with a single linefeed character (tlbsLF). If Style is omitted, the style for the compile target is used. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!