Remove any leading characters in a set from a string.
Source position: strutils.pp line 271
procedure RemoveLeadingChars( |
var S: AnsiString; |
const CSet: TSysCharSet |
); |
var S: UnicodeString; |
const CSet: TSysCharSet |
); |
Removeleadingchars removes any starting characters from S that appear in the set CSet. It stops removing characters as soon as a character not in CSet is encountered. This is similar in behaviour to TrimLeft which used whitespace as the set.
None.
|
Trim whitespace from the beginning of a string. |
|
|
Remove any trailing characters in a set from a string. |
|
|
Remove any trailing or leading characters in a set from a string. |
|
|
Remove any leading characters in a set from a string and returns the result. |