JCL Help:TrimStrings@TJclAnsiStrings@Boolean

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Trims all strings in a string list.


Pascal

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


Parameters

Parameters Description
const List: TStrings The stringlist whose contents to 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

TrimStrings trims all strings in the specified stringlist using the standard Delphi Trim 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 the DeleteIfEmpty parameter.


See Also

TrimStringsRight TrimStringsLeft


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