[fpc-pascal] any free pascal standard function to compare a string against an array of string?
Michael Van Canneyt
michael at freepascal.org
Wed Oct 10 17:31:23 CEST 2018
On Wed, 10 Oct 2018, 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?
IndexStr in strutils:
https://www.freepascal.org/docs-html/current/rtl/strutils/indexstr.html
Michael.
More information about the fpc-pascal
mailing list