#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include "microregex_internal.h"
Functions | |
microregex_nfa_t | microregex_parse_regex (microregex_t, char *, char **) |
void | microregex_destroy_nfa (microregex_nfa_t *) |
microregex_t | microregex_create (char *regex) |
void | microregex_destroy (microregex_t *regex_obj) |
microregex_t microregex_create | ( | char * | regex | ) |
Create regular expression object.
regex | The regular expression to parse. |
void microregex_destroy | ( | microregex_t * | regex_obj | ) |
Destroy regular expression object.
regex_obj | The regular expression object to destroy. |
void microregex_destroy_nfa | ( | microregex_nfa_t * | regex_obj | ) |
Destroy regular expression object.
regex_obj | The regular expression object to destroy. |
microregex_nfa_t microregex_parse_regex | ( | microregex_t | regex_obj, | |
char * | regex, | |||
char ** | end_char | |||
) |
Parse regular expression into an NFA.
regex_obj | The regular expression object with state. | |
regex | The regular expression to parse. | |
end_char | The location where it stopped parsing |