-/* $Id: recgrs.c,v 1.105 2005-08-22 08:19:51 adam Exp $
+/* $Id: recgrs.c,v 1.108 2006-02-07 00:17:44 adam Exp $
Copyright (C) 1995-2005
Index Data ApS
unsigned char c;
for (c = *p++, t = s->trans, i = s->tran_no; --i >= 0; t++)
+ {
if (c >= t->ch[0] && c <= t->ch[1])
{
while (i >= 0)
if (s->rule_no)
return 1;
/* next char */
+ if (!c)
+ return 0;
c = *p++;
for (t = s->trans, i = s->tran_no; --i >= 0; t++)
if (c >= t->ch[0] && c <= t->ch[1])
break;
}
}
+ }
return 0;
}
p, wrd);
xpdone = 1;
} else {
- /* add attribute based index for the attribute */
+ /* index attribute value (only path/@attr) */
if (xp->value)
{
#if NATTR