#include #include #include #include "nntpgrab_utils.h"
Functions |
|
| NGRegex * | nntpgrab_utils_regex_compile (const char *regex) |
| Compile a regular expression. |
|
| void | nntpgrab_utils_regex_free (NGRegex *re) |
| Free a compiled regular expression. |
|
| const char ** | nntpgrab_utils_regex_match (NGRegex *re, const char *line) |
| Perform a match against a compiled regular expression. |
|
| void | nntpgrab_utils_regex_matches_free (const char **matches) |
| Free an array of matched items. |
|
| NGRegex* nntpgrab_utils_regex_compile | ( | const char * | regex | ) |
Compile a regular expression.
| regex | The (perl-compatible) regular expression which needs to be compiled |
| void nntpgrab_utils_regex_free | ( | NGRegex * | re | ) |
Free a compiled regular expression.
| re | The compiled regular expression |
| const char** nntpgrab_utils_regex_match | ( | NGRegex * | re, | |
| const char * | line | |||
| ) |
Perform a match against a compiled regular expression.
| re | The compiled regular expression | |
| line | The data which need to be matched against the compiled regular expression |
| void nntpgrab_utils_regex_matches_free | ( | const char ** | matches | ) |
Free an array of matched items.
| matches | The NULL-terminated array of matches as returned by the function nntpgrab_utils_regex_match() |