ze-filter
(ze-filter-0.8.0-develop-180218)
zeRegex.h
Go to the documentation of this file.
1
/*
2
*
3
* ze-filter - Mail Server Filter for sendmail
4
*
5
* Copyright (c) 2001-2018 - Jose-Marcio Martins da Cruz
6
*
7
* Auteur : Jose Marcio Martins da Cruz
8
* jose.marcio.mc@gmail.org
9
*
10
* Historique :
11
* Creation : janvier 2002
12
*
13
* This program is free software, but with restricted license :
14
*
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19
*
20
* More details about ze-filter license can be found at ze-filter
21
* web site : http://foss.jose-marcio.org
22
*/
23
24
25
#ifndef __ZE_REGEX_H
26
33
struct
zeRegex_T
34
{
35
uint32_t
signature
;
36
char
*
expr
;
37
regex_t
re
;
38
39
#if USE_PCRE
40
pcre *
pcre_rebase
;
41
pcre_extra *
pcre_rextra
;
42
#endif
43
44
int
result
;
45
bool
re_ok
;
46
};
47
48
typedef
struct
zeRegex_T
zeRegex_T
;
49
50
51
bool
zeRegexComp
(
zeRegex_T
*,
char
*,
int
);
52
53
bool
zeRegexExec
(
zeRegex_T
*,
char
*,
long
*,
long
*,
int
);
54
55
void
zeRegexFree
(
zeRegex_T
*);
56
57
int
zeRegexCount
(
char
*,
char
*);
58
59
bool
zeRegexLookup
(
char
*,
char
*,
long
*,
long
*);
60
61
char
*
zeRegexError
(
zeRegex_T
*);
62
63
64
67
#define __ZE_REGEX_H
68
#endif
zeRegex_T::re_ok
bool re_ok
Definition:
zeRegex.h:45
zeRegex_T::re
regex_t re
Definition:
zeRegex.h:37
zeRegexCount
int zeRegexCount(char *, char *)
Definition:
zeRegex.c:200
zeRegex_T::result
int result
Definition:
zeRegex.h:44
zeRegex_T::pcre_rextra
pcre_extra * pcre_rextra
Definition:
zeRegex.h:41
zeRegexExec
bool zeRegexExec(zeRegex_T *, char *, long *, long *, int)
Definition:
zeRegex.c:119
zeRegexError
char * zeRegexError(zeRegex_T *)
Definition:
zeRegex.c:265
zeRegexLookup
bool zeRegexLookup(char *, char *, long *, long *)
Definition:
zeRegex.c:229
zeRegexFree
void zeRegexFree(zeRegex_T *)
Definition:
zeRegex.c:169
zeRegex_T::pcre_rebase
pcre * pcre_rebase
Definition:
zeRegex.h:40
zeRegex_T
Definition:
zeRegex.h:33
zeRegexComp
bool zeRegexComp(zeRegex_T *, char *, int)
Definition:
zeRegex.c:54
zeRegex_T::signature
uint32_t signature
Definition:
zeRegex.h:35
uint32_t
long uint32_t
Definition:
ze-sys.h:489
zeRegex_T::expr
char * expr
Definition:
zeRegex.h:36
libze
include
zeRegex.h
Generated by
1.8.13