Indy 9 | Content | Index | Reference

TrimAllOf
Example, Unit: IdStrings
Removes leading and trailing occurrences of the specified characters.

    function TrimAllOf(ATrim: String; AText: String): String;

Unit
IdStrings
Parameters
ATrim: String
Character values to be removed.
AText: String
Text to be trimmed.
Return Value
String - Values after removing the specified characters.
Description
TrimAllOf is a String function that remove all occurrences of character values in ATrim from the beginning and end of the values specified in AText. TrimAllOf is like SysUtils.Trim, but acts upon the characters specified in ATrim instead of the default space character.

The return value for TrimAllOf is the values in AText after removing all leading and trailing occurrences of the characters in ATrim.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.