JCL Help:WideAdjustLineBreaks

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Standardizes linebreak characters to lineseparator characters.


Pascal

 function WideAdjustLineBreaks(const S: WideString): WideString;


Parameters

Parameters Description
const S: WideString The string for which to adjust linebreaks.


Return Value

The linebreak adjusted string. This is a true copy of the string, the source string is not affected.


Description

Standardizes linebreak characters to lineseparator characters by adjusting all occurrences of CarriageReturn, LineFeed or a combination thereof into LineSeparators. The function changes all occurrences of CarriageReturn and LineFeed into a LineSeparator and turns the sequence LineFeed + CarriageReturn into two LineSeparators. Only the CarriageReturn + LineFeed sequence is unaffected.


About

Unit

JclUnicode


Donator

Mike Lischke


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page