]> mj.ucw.cz Git - libucw.git/blob - ucw/regex.h
Mapping of whole files: Converted to size_t.
[libucw.git] / ucw / regex.h
1 /*
2  *      UCW Library -- Interface to Regular Expression Libraries
3  *
4  *      (c) 1997--2004 Martin Mares <mj@ucw.cz>
5  *      (c) 2001 Robert Spalek <robert@ucw.cz>
6  *
7  *      This software may be freely distributed and used according to the terms
8  *      of the GNU Lesser General Public License.
9  */
10
11 #ifndef _UCW_REGEX_H
12 #define _UCW_REGEX_H
13
14 #ifdef CONFIG_UCW_CLEAN_ABI
15 #define rx_compile ucw_rx_compile
16 #define rx_free ucw_rx_free
17 #define rx_match ucw_rx_match
18 #define rx_subst ucw_rx_subst
19 #endif
20
21 typedef struct regex regex;
22
23 regex *rx_compile(const char *r, int icase);
24 void rx_free(regex *r);
25 int rx_match(regex *r, const char *s);
26 int rx_subst(regex *r, const char *by, const char *src, char *dest, uns destlen);
27
28 #endif