Skip to content

CharInSet

Check whether a char is in a set of characters

Declaration

Source position: sysansih.inc line 27

  function CharInSet(Ch: AnsiChar; const CSet: TSysCharSet) : Boolean;
  function CharInSet(Ch: WideChar; const CSet: TSysCharSet) : Boolean;

Description

CharInSet returns True if Ch matches one of the characters in CSet, it returns False otherwise. It is equivalent to

Ch in CSet

Later versions of this function may take WideChar into account.