#include "common.h"
#include "misc.h"
#include "pattern.h"
#include "zalloc.h"
#include "override.h"
Functions | |
| RCSID ("$Id:pattern.c, v 1.7 2005/09/10 10:10:36 daichik Exp $") | |
| void | pattern_init (void) |
| Initialize pattern data structures. | |
| void | pattern_close (void) |
| Cleanup data structures. | |
| cpattern_t * | pattern_compile (const gchar *pattern) |
| Compile given string pattern by computing the delta shift table. | |
| cpattern_t * | pattern_compile_fast (const gchar *pattern, size_t plen) |
| Same as pattern_compile(), but the pattern string is NOT duplicated, and its length is known upon entry. | |
| void | pattern_free (cpattern_t *cpat) |
| Dispose of compiled pattern. | |
| const gchar * | pattern_qsearch (cpattern_t *cpat, const gchar *text, size_t tlen, size_t toffset, qsearch_mode_t word) |
| Quick substring search algorithm. | |
Variables | |
| zone_t * | pat_zone = NULL |
| Compiled patterns. | |
|
|
Cleanup data structures.
|
|
|
Compile given string pattern by computing the delta shift table. The pattern string given is duplicated.
|
|
||||||||||||
|
Same as pattern_compile(), but the pattern string is NOT duplicated, and its length is known upon entry.
|
|
|
Dispose of compiled pattern.
|
|
|
Initialize pattern data structures.
|
|
||||||||||||||||||||||||
|
Quick substring search algorithm. It looks for the compiled pattern with `text', from left to right. The `tlen' argument is the length of the text, and can left to 0, in which case it will be computed.
|
|
||||||||||||
|
|
|
|
Compiled patterns.
|
1.3.6