[fpc-pascal] Partial text search in a dictionary
duilio foschi
octopushole at gmail.com
Mon May 15 15:40:51 CEST 2017
a pointer is - after all - just an integer.
See
http://delphi.cjcsoft.net/viewthread.php?tid=44049
Instead of TStringLIst use a SQLite (open source) in-memory table to
store your data.
The table can be indexed and searched using function Locate with
option loPartialKey.
Just my 2c
Peppe
2017-05-15 14:19 GMT+02:00 Jürgen Hestermann <juergen.hestermann at gmx.de>:
> Am 2017-05-15 um 13:14 schrieb Torsten Bonde Christiansen:
>> however I was hoping someone might know of an implementation that works
>> more or less out of the box.
>
> To me it was very seldom that an existing solution
> severed all my needs. Either not all requirements were
> complied from the beginning or, even worse, I invested time
> using an existing "solution" only to find out much later
> that some detail does not work so I had to write my own solution anyway.
> I wasted time in understanding an (often poorly
> documented) existing routine, fighting with bugs in it
> and then had to write it more or less from cratch anyway.
>
> If I understand your requirements correctly it should not be
> too much work to write your own solution.
> You would also have the freedom to exactly adapt it to your needs
> without fiddling with parameters and adjustments of an existing
> library which are superfluous for your purpose.
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list