[fpc-pascal] any free pascal standard function to compare a string against an array of string?

David Copeland david.copeland at jsidata.ca
Wed Oct 10 17:29:57 CEST 2018


Dennis,

Look at AnsiMatchStr in strutils.

Dave.

On 2018-10-10 11:11 a.m., Dennis wrote:
> is there a function like
>   if    IsOneOf('subtext', ['abc','cde','fecg','hig'])   then begin
> ...
> end;
>
> is there such a function IsOneOf(TheSubString : String; const
> TheStrings : array of String) : Boolean
> ?
> if yes, what is its name and unit?
>
> Dennis
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


-- 
David Copeland
JSI Data Systems Limited
613-727-9353
www.jsidata.ca




More information about the fpc-pascal mailing list