Re: [fpc-pascal] Partial text search in a dictionary

2017-05-16 Thread Torsten Bonde Christiansen
On 2017-05-16 10:26, leledumbo via fpc-pascal wrote: However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching pair would be fine. The match only has to be done from

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-16 Thread leledumbo via fpc-pascal
> However i would like to be able to do a partial text search on the strings, prefeably with a result as a list of matching string/object pairs but getting an index to the first matching pair would be fine. The match only has to be done from the first character of both strings, so a complex

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-15 Thread duilio foschi
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

Re: [fpc-pascal] Partial text search in a dictionary

2017-05-15 Thread Jürgen Hestermann
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