Workshop o mikrokontrolérech na SKSP 2024.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
708 B

3 months ago
/*
* UCW Library -- Interface to Regular Expression Libraries
*
* (c) 1997--2004 Martin Mares <mj@ucw.cz>
* (c) 2001 Robert Spalek <robert@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
*/
#ifndef _UCW_REGEX_H
#define _UCW_REGEX_H
#ifdef CONFIG_UCW_CLEAN_ABI
#define rx_compile ucw_rx_compile
#define rx_free ucw_rx_free
#define rx_match ucw_rx_match
#define rx_subst ucw_rx_subst
#endif
typedef struct regex regex;
regex *rx_compile(const char *r, int icase);
void rx_free(regex *r);
int rx_match(regex *r, const char *s);
int rx_subst(regex *r, const char *by, const char *src, char *dest, uint destlen);
#endif