|
Atrinik Server 2.5
|
#include <stdio.h>#include <stdlib.h>#include <memory.h>#include <limits.h>#include <re-cmp.h>#include <ctype.h>Go to the source code of this file.
Functions | |
| const char * | re_cmp (const char *, const char *) |
| static int | re_cmp_step (const char *, const char *, int, int) |
| static void | re_init (void) |
| static int | re_match_token (unsigned char, selection *) |
| static const char * | re_get_token (selection *, const char *) |
Variables | |
| static int | re_init_done = 0 |
| static selection * | re_token [RE_TOKEN_MAX] |
| static const char * | re_substr [RE_TOKEN_MAX] |
| static unsigned int | re_token_depth |
Pattern match a string, parsing some of the common RE-metacharacters.
This code is public domain, but I would appreciate to hear of improvements or even the fact that you use it in your program.
Deliberate BUGS:
Author: Kjetil T. Homme (kjetilho@ifi.uio.no) May 1993
Definition in file re-cmp.c.
| const char* re_cmp | ( | const char * | str, |
| const char * | regexp | ||
| ) |
| static int re_cmp_step | ( | const char * | str, |
| const char * | regexp, | ||
| int | slot, | ||
| int | matches | ||
| ) | [static] |
| static const char * re_get_token | ( | selection * | sel, |
| const char * | regexp | ||
| ) | [static] |
| static void re_init | ( | ) | [static] |
1.7.4