Ingemar Ragnemalm
2018-10-10 15:57:09 UTC
You mean something faster than a for-loop? Like a hash table?
I don't know of any hash table in the standard library but there are
some in the class library:
https://www.freepascal.org/docs-html/fcl/contnrs/tfpstringhashtable.html
https://www.freepascal.org/docs-html/fcl/contnrs/tfphashlist.html
I have not used these myself but they may suit your problem.
Or you can just write your own hash table function. It is not that hard.
/Ingemar
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepa
I don't know of any hash table in the standard library but there are
some in the class library:
https://www.freepascal.org/docs-html/fcl/contnrs/tfpstringhashtable.html
https://www.freepascal.org/docs-html/fcl/contnrs/tfphashlist.html
I have not used these myself but they may suit your problem.
Or you can just write your own hash table function. It is not that hard.
/Ingemar
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?
_______________________________________________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?
fpc-pascal maillist - fpc-***@lists.freepascal.org
http://lists.freepa