Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

pcre.h

Go to the documentation of this file.
00001 /*************************************************
00002 *       Perl-Compatible Regular Expressions      *
00003 *************************************************/
00004 
00005 /* Copyright (c) 1997-1999 University of Cambridge */
00006 
00007 #ifndef _PCRE_H
00008 #define _PCRE_H
00009 
00010 /* Have to include stdlib.h in order to ensure that size_t is defined;
00011 it is needed here for malloc. */
00012 
00013 #include <sys/types.h>
00014 #include <stdlib.h>
00015 
00016 /* Allow for C++ users */
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 /* Options */
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 /* Exec-time and get-time error codes */
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 /* Types */
00046 
00047 typedef void pcre;
00048 typedef void pcre_extra;
00049 
00050 /* Store get and free functions. These can be set to alternative malloc/free
00051 functions if required. */
00052 
00053 extern void *(*vmdpcre_malloc)(size_t);
00054 extern void  (*vmdpcre_free)(void *);
00055 
00056 /* Functions */
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 }  /* extern "C" */
00067 #endif
00068 
00069 #endif /* End of pcre.h */

Generated on Fri Apr 19 02:45:10 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002