2 |
* Perl-Compatible Regular Expressions * |
* Perl-Compatible Regular Expressions * |
3 |
*************************************************/ |
*************************************************/ |
4 |
|
|
5 |
/* Copyright (c) 1998 University of Cambridge */ |
/* Copyright (c) 1997-1999 University of Cambridge */ |
6 |
|
|
7 |
#ifndef _PCRE_H |
#ifndef _PCRE_H |
8 |
#define _PCRE_H |
#define _PCRE_H |
32 |
#define PCRE_NOTEOL 0x0100 |
#define PCRE_NOTEOL 0x0100 |
33 |
#define PCRE_UNGREEDY 0x0200 |
#define PCRE_UNGREEDY 0x0200 |
34 |
|
|
35 |
/* Exec-time error codes */ |
/* Exec-time and get-time error codes */ |
36 |
|
|
37 |
#define PCRE_ERROR_NOMATCH (-1) |
#define PCRE_ERROR_NOMATCH (-1) |
38 |
#define PCRE_ERROR_NULL (-2) |
#define PCRE_ERROR_NULL (-2) |
40 |
#define PCRE_ERROR_BADMAGIC (-4) |
#define PCRE_ERROR_BADMAGIC (-4) |
41 |
#define PCRE_ERROR_UNKNOWN_NODE (-5) |
#define PCRE_ERROR_UNKNOWN_NODE (-5) |
42 |
#define PCRE_ERROR_NOMEMORY (-6) |
#define PCRE_ERROR_NOMEMORY (-6) |
43 |
|
#define PCRE_ERROR_NOSUBSTRING (-7) |
44 |
|
|
45 |
/* Types */ |
/* Types */ |
46 |
|
|
55 |
|
|
56 |
/* Functions */ |
/* Functions */ |
57 |
|
|
58 |
extern pcre *pcre_compile(const char *, int, const char **, int *); |
extern pcre *pcre_compile(const char *, int, const char **, int *, |
59 |
|
const unsigned char *); |
60 |
|
extern int pcre_copy_substring(const char *, int *, int, int, char *, int); |
61 |
extern int pcre_exec(const pcre *, const pcre_extra *, const char *, |
extern int pcre_exec(const pcre *, const pcre_extra *, const char *, |
62 |
int, int, int *, int); |
int, int, int, int *, int); |
63 |
|
extern int pcre_get_substring(const char *, int *, int, int, const char **); |
64 |
|
extern int pcre_get_substring_list(const char *, int *, int, const char ***); |
65 |
extern int pcre_info(const pcre *, int *, int *); |
extern int pcre_info(const pcre *, int *, int *); |
66 |
|
extern unsigned const char *pcre_maketables(void); |
67 |
extern pcre_extra *pcre_study(const pcre *, int, const char **); |
extern pcre_extra *pcre_study(const pcre *, int, const char **); |
68 |
extern const char *pcre_version(void); |
extern const char *pcre_version(void); |
69 |
|
|