Re: htdig: htsearch exclude bug


Alexander Bergolth (leo@jokes.wu-wien.ac.at)
Tue, 22 Sep 1998 20:47:21 +0200 (MES)


On Wed, 16 Sep 1998, Alexander Bergolth wrote:
> On Wed, 16 Sep 1998, J. op den Brouw wrote:
> > Should it not be:
> >
> > excludeFrom->FindFirst(url) >= 0)
> > ??
>
> No, because excludeFrom->FindFirst(url) == 0 means that there is no search
> pattern in the exclude list. In this case 1 should be returned. (If
> nothing is in the exclude-list, it should be displayed.)

OK, sorry, I was wrong.
FindFirst(url) may be 0 even though there is a search pattern compiled.
So you are right, it should be "excludeFrom->FindFirst(url) >= 0".

Bye,
      Leo

-----------------------------------------------------------------------
Alexander (Leo) Bergolth leo@leo.wu-wien.ac.at
WU-Wien - Zentrum fuer Informatikdienste http://leo.wu-wien.ac.at
Info Center
In a world without walls and fences, who needs windows and gates?

----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.



This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:27:50 PST