Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function AdjustLineBreaks(const S: string): string;
Returns the string with all line breaks converted to true CR/LF sequences.
The function changes any CR characters not followed by a LF and any LF characters not preceded by a CR into CR/LF pairs. It also converts LF/CR pairs to CR/LF pairs. The LF/CR pair is common in Unix text files.
var s : string;
s:= AdjustLineBreaks(s);
|
String Types in Delphi
Understanding and managing string data types in Delphi's Object Pascal. Learn about differences between Short, Long, Wide and null-terminated strings.
TrimLeft,
TrimRight,
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|