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

Dennis dec12 at avidsoft.com.hk
Wed Oct 10 17:11:48 CEST 2018


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


More information about the fpc-pascal mailing list