[Overview][Constants][Types][Procedures and functions] | Reference for unit 'strutils' (#rtl) |
Remove any trailing characters in a set from a string
Source position: strutils.pp line 185
procedure RemoveTrailingChars( |
var S: AnsiString; |
const CSet: TSysCharset |
); |
RemoveTrailingChars removes any trailing characters from S that appear in the set CSet, i.e. it starts with the last character and works its way to the start of the string. It stops removing characters as soon as a character not in CSet is encountered. This is similar in behaviour to TrimRight which used whitespace as the set.
TrimRight |
||
|
Remove any leading characters in a set from a string |
|
|
Remove any trailing characters in a set from a string and returns the result |
No notes exist for this page yet.