projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use m_temp instead of mutt_mktemp in compress code
[apps/madmutt.git]
/
lib-lib
/
rx.h
diff --git
a/lib-lib/rx.h
b/lib-lib/rx.h
index
14709d1
..
af86374
100644
(file)
--- a/
lib-lib/rx.h
+++ b/
lib-lib/rx.h
@@
-43,14
+43,19
@@
typedef struct rx_t {
char *pattern; /* printable version */
regex_t *rx; /* compiled expression */
int not; /* do not match */
char *pattern; /* printable version */
regex_t *rx; /* compiled expression */
int not; /* do not match */
+
+ int nmatch; /* nb matches */
+ char *template; /* out template */
} rx_t;
} rx_t;
-rx_t* rx_compile (const char*, int);
+rx_t* rx_compile(const char*, int);
+void rx_set_template(rx_t *, const char*);
void rx_delete(rx_t **);
DO_SLIST(rx_t, rx, rx_delete);
/* for handling lists */
int rx_list_match(rx_t *, const char*); /* match all items list agains string */
void rx_delete(rx_t **);
DO_SLIST(rx_t, rx, rx_delete);
/* for handling lists */
int rx_list_match(rx_t *, const char*); /* match all items list agains string */
+int rx_list_match2(rx_t *l, const char *s, char *dst, int dlen);
rx_t **rx_lookup(rx_t**, const char*); /* lookup pattern */
int rx_sanitize_string(char *, ssize_t, const char *);
rx_t **rx_lookup(rx_t**, const char*); /* lookup pattern */
int rx_sanitize_string(char *, ssize_t, const char *);