[Overview][Constants][Types][Procedures and functions] |
Remove any trailing or leading characters in a set from a string
Source position: strutils.pp line 186
procedure RemovePadChars( |
var S: AnsiString; |
const CSet: TSysCharset |
); |
RemovePadCharsremoves any leading trailing characters from Sthat appear in the set CSet, i.e. it starts with the last character and works its way to the start of the string, and it stops removing characters as soon as a character not in CSetis encountered. Then the same procedure is repeated starting from the beginning of the string. This is similar in behaviour to Trimwhich used whitespace as the set.
None.
Trim |
||
|
Remove any leading characters in a set from a string |
|
|
Remove any trailing characters in a set from a string |
|
|
Remove any leading or trailing characters in a set from a string and returns the result |
|
|
Remove any leading characters in a set from a string and returns the result |
|
|
Remove any trailing characters in a set from a string and returns the result |