• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/gettext-0.17/gettext-tools/libgrep/

Lines Matching defs:fastmap

722 /* Print the fastmap in human-readable form.  */
726 print_fastmap (char *fastmap)
733 if (fastmap[i++])
737 while (i < (1 << BYTEWIDTH) && fastmap[i])
1100 if (bufp->fastmap_accurate && bufp->fastmap)
1102 printf ("fastmap: ");
1103 print_fastmap (bufp->fastmap);
2286 The `fastmap' and `newline_anchor' fields are neither
4521 /* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
4522 BUFP. A fastmap records which of the (1 << BYTEWIDTH) possible
4523 characters can start a string that matches the pattern. This fastmap
4527 area as BUFP->fastmap.
4529 We set the `fastmap', `fastmap_accurate', and `can_be_null' fields in
4561 register char *fastmap = bufp->fastmap;
4589 assert (fastmap != NULL && p != NULL);
4592 bzero (fastmap, 1 << BYTEWIDTH); /* Assume nothing's valid. */
4622 /* I guess the idea here is to simply not bother with a fastmap
4624 the fastmap for the corresponding group. Setting
4625 `can_be_null' stops `re_search_2' from using the fastmap, so
4637 fastmap[truncate_wchar(p[1])] = 1;
4641 fastmap[p[1]] = 1;
4646 fastmap[p[1]] = 1;
4651 /* It is hard to distinguish fastmap from (multi byte) characters
4663 fastmap[j] = 1;
4670 fastmap[j] = 1;
4674 fastmap[j] = 1;
4681 fastmap[j] = 1;
4688 fastmap[j] = 1;
4694 int fastmap_newline = fastmap['\n'];
4698 fastmap[j] = 1;
4702 fastmap['\n'] = fastmap_newline;
4705 then the fastmap is irrelevant. Something's wrong here. */
4718 fastmap[j] = 1;
4726 fastmap[j] = 1;
4796 fastmap entries beyond `pend'. Such a pattern can match
5033 register char *fastmap = bufp->fastmap;
5085 /* Update the fastmap now if not correct already. */
5086 if (fastmap && !bufp->fastmap_accurate)
5168 /* If a fastmap is supplied, skip quickly over characters that
5172 if (fastmap && startpos < total_size && !bufp->can_be_null)
5189 && !fastmap[(unsigned char)
5193 while (range > lim && !fastmap[(unsigned char) *d++])
5204 if (!fastmap[(unsigned char) TRANSLATE (c)])
5210 if (range >= 0 && startpos == total_size && fastmap
7946 re_comp_buf.fastmap = malloc (1 << BYTEWIDTH);
7947 if (re_comp_buf.fastmap == NULL)
8002 `fastmap' to an allocated space for the fastmap;
8039 /* Try to allocate space for the fastmap. */
8040 preg->fastmap = (char *) malloc (1 << BYTEWIDTH);
8085 if (ret == REG_NOERROR && preg->fastmap)
8087 /* Compute the fastmap now, since regexec cannot modify the pattern
8091 /* Some error occurred while computing the fastmap, just forget
8093 free (preg->fastmap);
8094 preg->fastmap = NULL;
8235 if (preg->fastmap != NULL)
8236 free (preg->fastmap);
8237 preg->fastmap = NULL;