1
/*************************************************
2
* Perl-Compatible Regular Expressions *
3
*************************************************/
5
/* Copyright (c) 1997-2001 University of Cambridge */
10
/* The file pcre.h is build by "configure". Do not edit it; instead
11
make changes to pcre.in. */
15
#define PCRE_DATE 02-Jan-2002
17
/* Win32 uses DLL by default */
22
# define PCRE_DL_IMPORT
24
# define PCRE_DL_IMPORT __declspec(dllimport)
27
# define PCRE_DL_IMPORT
30
/* Have to include stdlib.h in order to ensure that size_t is defined;
31
it is needed here for malloc. */
35
/* Allow for C++ users */
43
#define PCRE_CASELESS 0x0001
44
#define PCRE_MULTILINE 0x0002
45
#define PCRE_DOTALL 0x0004
46
#define PCRE_EXTENDED 0x0008
47
#define PCRE_ANCHORED 0x0010
48
#define PCRE_DOLLAR_ENDONLY 0x0020
49
#define PCRE_EXTRA 0x0040
50
#define PCRE_NOTBOL 0x0080
51
#define PCRE_NOTEOL 0x0100
52
#define PCRE_UNGREEDY 0x0200
53
#define PCRE_NOTEMPTY 0x0400
54
#define PCRE_UTF8 0x0800
56
/* Exec-time and get-time error codes */
58
#define PCRE_ERROR_NOMATCH (-1)
59
#define PCRE_ERROR_NULL (-2)
60
#define PCRE_ERROR_BADOPTION (-3)
61
#define PCRE_ERROR_BADMAGIC (-4)
62
#define PCRE_ERROR_UNKNOWN_NODE (-5)
63
#define PCRE_ERROR_NOMEMORY (-6)
64
#define PCRE_ERROR_NOSUBSTRING (-7)
66
/* Request types for pcre_fullinfo() */
68
#define PCRE_INFO_OPTIONS 0
69
#define PCRE_INFO_SIZE 1
70
#define PCRE_INFO_CAPTURECOUNT 2
71
#define PCRE_INFO_BACKREFMAX 3
72
#define PCRE_INFO_FIRSTCHAR 4
73
#define PCRE_INFO_FIRSTTABLE 5
74
#define PCRE_INFO_LASTLITERAL 6
78
struct real_pcre; /* declaration; the definition is private */
79
struct real_pcre_extra; /* declaration; the definition is private */
81
typedef struct real_pcre pcre;
82
typedef struct real_pcre_extra pcre_extra;
84
/* Store get and free functions. These can be set to alternative malloc/free
85
functions if required. Some magic is required for Win32 DLL; it is null on
88
PCRE_DL_IMPORT extern void *(*pcre_malloc)(size_t);
89
PCRE_DL_IMPORT extern void (*pcre_free)(void *);
95
extern pcre *pcre_compile(const char *, int, const char **, int *,
96
const unsigned char *);
97
extern int pcre_copy_substring(const char *, int *, int, int, char *, int);
98
extern int pcre_exec(const pcre *, const pcre_extra *, const char *,
99
int, int, int, int *, int);
100
extern void pcre_free_substring(const char *);
101
extern void pcre_free_substring_list(const char **);
102
extern int pcre_get_substring(const char *, int *, int, int, const char **);
103
extern int pcre_get_substring_list(const char *, int *, int, const char ***);
104
extern int pcre_info(const pcre *, int *, int *);
105
extern int pcre_fullinfo(const pcre *, const pcre_extra *, int, void *);
106
extern const unsigned char *pcre_maketables(void);
107
extern pcre_extra *pcre_study(const pcre *, int, const char **);
108
extern const char *pcre_version(void);
114
#endif /* End of pcre.h */