Sign in Join
FPDoc Onlineexperiment

RemoveLeadingChars procedure

In unit StrUtils

Remove any leading characters in a set from a string.

Declaration

pascal
procedure RemoveLeadingChars(var S: AnsiString; 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.