2 |
* Perl-Compatible Regular Expressions * |
* Perl-Compatible Regular Expressions * |
3 |
*************************************************/ |
*************************************************/ |
4 |
|
|
5 |
/* Copyright (c) 1997-2000 University of Cambridge */ |
/* Copyright (c) 1997-2001 University of Cambridge */ |
6 |
|
|
7 |
#ifndef _PCRE_H |
#ifndef _PCRE_H |
8 |
#define _PCRE_H |
#define _PCRE_H |
9 |
|
|
10 |
#define PCRE_MAJOR @PCRE_MAJOR@ |
/* The file pcre.h is build by "configure". Do not edit it; instead |
11 |
#define PCRE_MINOR @PCRE_MINOR@ |
make changes to pcre.in. */ |
12 |
#define PCRE_DATE @PCRE_DATE@ |
|
13 |
|
#define PCRE_MAJOR @PCRE_MAJOR@ |
14 |
|
#define PCRE_MINOR @PCRE_MINOR@ |
15 |
|
#define PCRE_DATE @PCRE_DATE@ |
16 |
|
|
17 |
/* Win32 uses DLL by default */ |
/* Win32 uses DLL by default */ |
18 |
|
|
29 |
/* Have to include stdlib.h in order to ensure that size_t is defined; |
/* Have to include stdlib.h in order to ensure that size_t is defined; |
30 |
it is needed here for malloc. */ |
it is needed here for malloc. */ |
31 |
|
|
|
#include <sys/types.h> |
|
32 |
#include <stdlib.h> |
#include <stdlib.h> |
33 |
|
|
34 |
/* Allow for C++ users */ |
/* Allow for C++ users */ |
50 |
#define PCRE_NOTEOL 0x0100 |
#define PCRE_NOTEOL 0x0100 |
51 |
#define PCRE_UNGREEDY 0x0200 |
#define PCRE_UNGREEDY 0x0200 |
52 |
#define PCRE_NOTEMPTY 0x0400 |
#define PCRE_NOTEMPTY 0x0400 |
53 |
|
#define PCRE_UTF8 0x0800 |
54 |
|
|
55 |
/* Exec-time and get-time error codes */ |
/* Exec-time and get-time error codes */ |
56 |
|
|
74 |
|
|
75 |
/* Types */ |
/* Types */ |
76 |
|
|
77 |
typedef void pcre; |
struct real_pcre; /* declaration; the definition is private */ |
78 |
typedef void pcre_extra; |
struct real_pcre_extra; /* declaration; the definition is private */ |
79 |
|
|
80 |
|
typedef struct real_pcre pcre; |
81 |
|
typedef struct real_pcre_extra pcre_extra; |
82 |
|
|
83 |
/* Store get and free functions. These can be set to alternative malloc/free |
/* Store get and free functions. These can be set to alternative malloc/free |
84 |
functions if required. Some magic is required for Win32 DLL; it is null on |
functions if required. Some magic is required for Win32 DLL; it is null on |
92 |
/* Functions */ |
/* Functions */ |
93 |
|
|
94 |
extern pcre *pcre_compile(const char *, int, const char **, int *, |
extern pcre *pcre_compile(const char *, int, const char **, int *, |
95 |
const unsigned char *); |
const unsigned char *); |
96 |
extern int pcre_copy_substring(const char *, int *, int, int, char *, int); |
extern int pcre_copy_substring(const char *, int *, int, int, char *, int); |
97 |
extern int pcre_exec(const pcre *, const pcre_extra *, const char *, |
extern int pcre_exec(const pcre *, const pcre_extra *, const char *, |
98 |
int, int, int, int *, int); |
int, int, int, int *, int); |
99 |
extern int pcre_get_substring(const char *, int *, int, int, const char **); |
extern void pcre_free_substring(const char *); |
100 |
extern int pcre_get_substring_list(const char *, int *, int, const char ***); |
extern void pcre_free_substring_list(const char **); |
101 |
extern int pcre_info(const pcre *, int *, int *); |
extern int pcre_get_substring(const char *, int *, int, int, const char **); |
102 |
extern int pcre_fullinfo(const pcre *, const pcre_extra *, int, void *); |
extern int pcre_get_substring_list(const char *, int *, int, const char ***); |
103 |
extern unsigned const char *pcre_maketables(void); |
extern int pcre_info(const pcre *, int *, int *); |
104 |
|
extern int pcre_fullinfo(const pcre *, const pcre_extra *, int, void *); |
105 |
|
extern const unsigned char *pcre_maketables(void); |
106 |
extern pcre_extra *pcre_study(const pcre *, int, const char **); |
extern pcre_extra *pcre_study(const pcre *, int, const char **); |
107 |
extern const char *pcre_version(void); |
extern const char *pcre_version(void); |
108 |
|
|