• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/src/

Lines Matching refs:fastmap

935 /* Print the fastmap in human-readable form.  */
938 print_fastmap (fastmap)
939 char *fastmap;
946 if (fastmap[i++])
950 while (i < (1 << BYTEWIDTH) && fastmap[i])
1229 if (bufp->fastmap_accurate && bufp->fastmap)
1231 printf ("fastmap: ");
1232 print_fastmap (bufp->fastmap);
1744 char *fastmap, const int multibyte));
2431 The `fastmap' field is neither examined nor set. */
3845 If fastmap is non-NULL, go through the pattern and fill fastmap
3846 with all the possible leading chars. If fastmap is NULL, don't
3852 Return -1 if fastmap was not updated accurately. */
3855 analyse_first (p, pend, fastmap, multibyte)
3857 char *fastmap;
3863 /* If all elements for base leading-codes in fastmap is set, this
3873 chars, then we add those chars to the fastmap and go on to the
3915 if (fastmap)
3918 /* When fast-scanning, the fastmap can be indexed either with
3923 fastmap[c] = 1;
3924 fastmap[p[1]] = 1;
3932 if (!fastmap) break;
3941 if (!fastmap) break;
3948 fastmap[j] = 1;
3951 if (!fastmap) break;
3957 fastmap[j] = 1;
3960 fastmap[LEADING_CODE_8_BIT_CONTROL] = 1;
3977 fastmap[j] = 1;
3985 /* Set fastmap[I] 1 where I is a base leading code of each
4000 fastmap[CHARSET_LEADING_CODE_BASE (j)] = 1;
4007 if (!fastmap) break;
4013 fastmap[j] = 1;
4022 if (!fastmap) break;
4027 fastmap[j] = 1;
4091 int r = analyse_first (p, pend, fastmap, multibyte);
4144 /* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
4145 BUFP. A fastmap records which of the (1 << BYTEWIDTH) possible
4146 characters can start a string that matches the pattern. This fastmap
4150 fastmap, but the leading codes are represented. Thus, the fastmap
4154 area as BUFP->fastmap.
4156 We set the `fastmap', `fastmap_accurate', and `can_be_null' fields in
4165 char *fastmap = bufp->fastmap;
4168 assert (fastmap && bufp->buffer);
4170 bzero (fastmap, 1 << BYTEWIDTH); /* Assume nothing's valid. */
4174 fastmap, RE_MULTIBYTE_P (bufp));
4280 register char *fastmap = bufp->fastmap;
4322 /* Update the fastmap now if not correct already. */
4323 if (fastmap && !bufp->fastmap_accurate)
4353 /* If a fastmap is supplied, skip quickly over characters that
4357 if (fastmap && startpos < total_size && !bufp->can_be_null)
4386 || fastmap[buf_ch])
4400 && !fastmap[RE_TRANSLATE (translate, di)])
4411 while (range > lim && !fastmap[*d])
4447 || fastmap[buf_ch]))
4453 if (range >= 0 && startpos == total_size && fastmap
6338 re_comp_buf.fastmap = (char *) malloc (1 << BYTEWIDTH);
6339 if (re_comp_buf.fastmap == NULL)
6385 `fastmap' to an allocated space for the fastmap;
6425 /* Try to allocate space for the fastmap. */
6426 preg->fastmap = (char *) malloc (1 << BYTEWIDTH);
6465 if (ret == REG_NOERROR && preg->fastmap)
6466 { /* Compute the fastmap now, since regexec cannot modify the pattern
6470 { /* The fastmap can't be used anyway. */
6471 free (preg->fastmap);
6472 preg->fastmap = NULL;
6622 if (preg->fastmap != NULL)
6623 free (preg->fastmap);
6624 preg->fastmap = NULL;