JCL Help:TrimStringsLeft@TJclAnsiStrings@Boolean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Left trims all strings in a stringlist.


Pascal

 procedure TrimStringsLeft(const List: TStrings; DeleteIfEmpty: Boolean = True);
procedure TrimStringsLeft(const List: TJclAnsiStrings; DeleteIfEmpty: Boolean = True);


Parameters

Parameters Description
const List: TStrings The stringlist whose contents to left trim.
DeleteIfEmpty: Boolean = True If True and a list entry is empty, or trimming it results in an empty string, the entry is deleted from the list.


Description

TrimStringsLeft left trims all strings in the specified stringlist using the standard Delphi TrimLeft procedure. If an entry in the list is empty or trimming it causes it to become empty, the entry is optionally deleted from the list depending on the DeleteIfEmpty parameter.


See Also

TrimStrings TrimStringsRight


About

Unit

JclAnsiStrings


Donator

Anthony Steele


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