[fpc-pascal] Re: Example: regular expressions and "hash-tables"

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Mar 22 10:11:03 CET 2013


On Fri, 22 Mar 2013 01:19:17 -0700 (PDT)
"S. Fisher" <expandafter at yahoo.com> wrote:

> --- On Thu, 3/21/13, Reinier Olislagers <reinierolislagers at gmail.com> wrote:
> 
> > From: Reinier Olislagers <reinierolislagers at gmail.com>
> > Subject: [fpc-pascal] Re: Example: regular expressions and "hash-tables"
> > To: "FPC Mailing list" <fpc-pascal at lists.freepascal.org>
> > Date: Thursday, March 21, 2013, 5:35 AM
> > On 21-3-2013 2:14, S. Fisher wrote:
> > > Not actually a hash-table, but an AvgLvlTree, which can
> > be used the
> > > same way.  The AvgLvlTree unit comes with Lazarus;
> > if you don't have
> > > that, you can download avglvltree.pas here:
> > > 
> > > http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/lazutils/avglvltree.pas?root=lazarus&view=log
> > > 
> > > There doesn't seem to be a lot of information available
> > on using
> > > regular expressions and hash-tables in Free Pascal, so
> > I decided to
> > > post this.
> > 
> > If I'm not mistaken, see:
> > http://wiki.lazarus.freepascal.org/AVL_Tree
> > 
> > Thanks,
> > Reinier
> 
> Yes, that was one of the very few good references that I found.

Thanks. It's a wiki

 
> There doesn't seem to be much demand for hash-tables in the Free
> Pascal community.  Hash-tables can be very helpful.  

There are some hash tables in units "contnrs", "dynhasharray" and
"stringhashlist".


> I don't
> see a good way to do what my program does without using associative
> arrays of some type.

Me too.


> Also, there doesn't seem to be much use of regular expressions.

Well, I guess Pascal programmers prefer readability over shortness.

 
> Anyway, TStringToPointerTree works well and seems very fast
> to me.

Me too.

Mattias



More information about the fpc-pascal mailing list