RAD Studio VCL Reference
|
Adjusts line break characters to reflect Windows or Linux style.
function AdjustLineBreaks(const S: string; Style: TTextLineBreakStyle = tlbsCRLF): string; overload;
AnsiString AdjustLineBreaks(const AnsiString S, TTextLineBreakStyle Style = tlbsCRLF);
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|