/[pcre]/code/tags/pcre-1.02/pcre.h
ViewVC logotype

Contents of /code/tags/pcre-1.02/pcre.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3 - (hide annotations) (download)
Sat Feb 24 21:38:01 2007 UTC (7 years, 1 month ago) by nigel
Original Path: code/trunk/pcre.h
File MIME type: text/plain
File size: 1584 byte(s)
Load pcre-1.00 into code/trunk.

1 nigel 3 /*************************************************
2     * Perl-Compatible Regular Expressions *
3     *************************************************/
4    
5     /* Copyright (c) 1997 University of Cambridge */
6    
7     #ifndef _PCRE_H
8     #define _PCRE_H
9    
10     /* Have to include stdlib.h in order to ensure that size_t is defined;
11     it is needed here for malloc. */
12    
13     #include <stdlib.h>
14    
15     /* Options */
16    
17     #define PCRE_CASELESS 0x0001
18     #define PCRE_EXTENDED 0x0002
19     #define PCRE_ANCHORED 0x0004
20     #define PCRE_MULTILINE 0x0008
21     #define PCRE_DOTALL 0x0010
22     #define PCRE_DOLLAR_ENDONLY 0x0020
23     #define PCRE_EXTRA 0x0040
24     #define PCRE_NOTBOL 0x0080
25     #define PCRE_NOTEOL 0x0100
26    
27     /* Exec-time error codes */
28    
29     #define PCRE_ERROR_NOMATCH (-1)
30     #define PCRE_ERROR_BADREF (-2)
31     #define PCRE_ERROR_NULL (-3)
32     #define PCRE_ERROR_BADOPTION (-4)
33     #define PCRE_ERROR_BADMAGIC (-5)
34     #define PCRE_ERROR_UNKNOWN_NODE (-6)
35     #define PCRE_ERROR_NOMEMORY (-7)
36    
37     /* Types */
38    
39     typedef void pcre;
40     typedef void pcre_extra;
41    
42     /* Store get and free functions. These can be set to alternative malloc/free
43     functions if required. */
44    
45     extern void *(*pcre_malloc)(size_t);
46     extern void (*pcre_free)(void *);
47    
48     /* Functions */
49    
50     extern pcre *pcre_compile(const char *, int, char **, int *);
51     extern int pcre_exec(const pcre *, const pcre_extra *, const char *,
52     int, int, int *, int);
53     extern int pcre_info(const pcre *, int *, int *);
54     extern pcre_extra *pcre_study(const pcre *, int, char **);
55     extern char *pcre_version(void);
56    
57     #endif /* End of pcre.h */

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12