[Reference] System.SysUtils.AdjustLineBreaks
Delphi
function AdjustLineBreaks(const S: string; Style: TTextLineBreakStyle): string;
C++
extern 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 |
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.
AdjustLineBreaks는 정해진 문자열의 모든 줄 바꿈을 나타낸 스타일로 조정합니다.
Style
이 tlbsCRLF
일 때, 이 함수는 LF가 따르지 않은 모든 CR 문자와 CR이
앞에 오지 않는 모든 LF 문자를 CR / LF 쌍으로 변경합니다.
Style
이 tlbsLF
이면, 이 함수는 모든 CR / LF 쌍과 CR 문자가 LF에서 LF 문자 다음에 오지 않도록 변경합니다.
given 미국·영국 [|gɪvn] 1. (이미) 정해진 precede 미국·영국 [prɪ|si:d] 1. …에 앞서다 …을 앞세우고 |
출처: http://docwiki.embarcadero.com/Libraries/XE2/en/System.SysUtils.AdjustLineBreaks