00001
00002
00003
00004
00005
00006
00007 #ifndef _PCRE_H
00008 #define _PCRE_H
00009
00010
00011
00012
00013 #include <sys/types.h>
00014 #include <stdlib.h>
00015
00016
00017
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021
00022
00023
00024 #define PCRE_CASELESS 0x0001
00025 #define PCRE_MULTILINE 0x0002
00026 #define PCRE_DOTALL 0x0004
00027 #define PCRE_EXTENDED 0x0008
00028 #define PCRE_ANCHORED 0x0010
00029 #define PCRE_DOLLAR_ENDONLY 0x0020
00030 #define PCRE_EXTRA 0x0040
00031 #define PCRE_NOTBOL 0x0080
00032 #define PCRE_NOTEOL 0x0100
00033 #define PCRE_UNGREEDY 0x0200
00034
00035
00036
00037 #define PCRE_ERROR_NOMATCH (-1)
00038 #define PCRE_ERROR_NULL (-2)
00039 #define PCRE_ERROR_BADOPTION (-3)
00040 #define PCRE_ERROR_BADMAGIC (-4)
00041 #define PCRE_ERROR_UNKNOWN_NODE (-5)
00042 #define PCRE_ERROR_NOMEMORY (-6)
00043 #define PCRE_ERROR_NOSUBSTRING (-7)
00044
00045
00046
00047 typedef void pcre;
00048 typedef void pcre_extra;
00049
00050
00051
00052
00053 extern void *(*vmdpcre_malloc)(size_t);
00054 extern void (*vmdpcre_free)(void *);
00055
00056
00057
00058 extern pcre *vmdpcre_compile(const char *, int, const char **, int *,
00059 const unsigned char *);
00060 extern int vmdpcre_exec(const pcre *, const pcre_extra *, const char *,
00061 int, int, int, int *, int);
00062 extern int vmdpcre_info(const pcre *, int *, int *);
00063 extern const char *vmdpcre_version(void);
00064
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068
00069 #endif