libarmutils  1.4
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups
regex_utils.h File Reference

Regular Expression Utilities. More...

Go to the source code of this file.

Data Structures

struct  REList
 Regular Expressions List. More...

Functions

int re_compile (regex_t *preg, const char *pattern, int cflags)
 Wrapper function for regcomp().
char * re_error (int errcode, regex_t *preg)
 Wrapper function for regerror().
int re_execute (regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)
 Wrapper function for regexec().
void re_free (regex_t *preg)
 Wrapper function for regfree().
void re_free_substrings (size_t nmatch, char **substrings)
 Free the substring list returned by re_substrings().
char ** re_substrings (const char *string, size_t nmatch, regmatch_t *pmatch)
 Extract the substrings from a regular expression match.
REListrelist_compile (REList *re_list, int npatterns, const char **patterns, int cflags)
 Compile a list of regular expression patterns.
int relist_execute (REList *re_list, const char *string, int eflags, int *mindex, size_t *nsubs, regmatch_t **pmatch, char ***substrings)
 Compare a string with a list of regular expressions.
void relist_free (REList *re_list)
 Free a regular expressions list.

Detailed Description

Regular Expression Utilities.

Definition in file regex_utils.h.