Unit 'StrUtils' Package
[Overview][Resource strings][Constants][Types][Procedures and functions][Index] [#rtl]

RemoveLeadingChars

Remove any leading characters in a set from a string.

Declaration

Source position: strutils.pp line 256

procedure RemoveLeadingChars(

  var S: AnsiString;

  const CSet: TSysCharSet

);

procedure RemoveLeadingChars(

  var S: UnicodeString;

  const CSet: TSysCharSet

);

Description

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.

Errors

None.

See also

TrimLeft

  

Trim whitespace from the beginning of a string.

RemoveTrailingChars

  

Remove any trailing characters in a set from a string.

RemovePadChars

  

Remove any trailing or leading characters in a set from a string.

TrimLeftSet

  

Remove any leading characters in a set from a string and returns the result.


Documentation generated on: Jul 22 2023