--- code/trunk/pcre.h 2007/02/24 21:38:41 23 +++ code/trunk/pcre.h 2007/02/24 21:39:09 37 @@ -2,7 +2,7 @@ * Perl-Compatible Regular Expressions * *************************************************/ -/* Copyright (c) 1998 University of Cambridge */ +/* Copyright (c) 1997-1999 University of Cambridge */ #ifndef _PCRE_H #define _PCRE_H @@ -31,8 +31,9 @@ #define PCRE_NOTBOL 0x0080 #define PCRE_NOTEOL 0x0100 #define PCRE_UNGREEDY 0x0200 +#define PCRE_NOTEMPTY 0x0400 -/* Exec-time error codes */ +/* Exec-time and get-time error codes */ #define PCRE_ERROR_NOMATCH (-1) #define PCRE_ERROR_NULL (-2) @@ -40,6 +41,7 @@ #define PCRE_ERROR_BADMAGIC (-4) #define PCRE_ERROR_UNKNOWN_NODE (-5) #define PCRE_ERROR_NOMEMORY (-6) +#define PCRE_ERROR_NOSUBSTRING (-7) /* Types */ @@ -54,10 +56,15 @@ /* Functions */ -extern pcre *pcre_compile(const char *, int, const char **, int *); +extern pcre *pcre_compile(const char *, int, const char **, int *, + const unsigned char *); +extern int pcre_copy_substring(const char *, int *, int, int, char *, int); extern int pcre_exec(const pcre *, const pcre_extra *, const char *, - int, int, int *, int); + int, int, int, int *, int); +extern int pcre_get_substring(const char *, int *, int, int, const char **); +extern int pcre_get_substring_list(const char *, int *, int, const char ***); extern int pcre_info(const pcre *, int *, int *); +extern unsigned const char *pcre_maketables(void); extern pcre_extra *pcre_study(const pcre *, int, const char **); extern const char *pcre_version(void);