JCL Help:StrOptimizeTabs@string@TJclTabSet
JCL Help: StrOptimizeTabs Function
Search in JCL Help
Search in all projects
Summary
Collapses a string to the optimal tab and space character sequences.
Pascal
function StrOptimizeTabs(S: string; TabSet: TJclTabSet): string;
Parameters
Parameters | Description |
S: string | The string to collapse tabs and spaces in. |
TabSet: TJclTabSet | The tab set to use |
Return Value
Any tab and/or space character sequences in S will have been reduced to their shortest form; no other item in the string is modified.
Description
StrOptimizeTabs reduces tab and space character sequences in the provided string into an optimized (shortest) sequences of tab and space characters while preserving the formatting. The provided tab width is used.
Multi-line strings, ie. strings containing one or more newline sequences (eg. CrLf, but also single Cr of Lf characters are treated as newlines), are handled properly.
The reverse operation (expand sequences of tab characters into spaces) can be achieved by the StrExpandTabs method.
See Also
TJclTabSet StrOptimizeTabs@string StrOptimizeTabs@string@Integer
About
Unit
Donator
Marcel Bestebroer
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