| 131 |
* Translate error code to string * |
* Translate error code to string * |
| 132 |
*************************************************/ |
*************************************************/ |
| 133 |
|
|
| 134 |
EXPORT size_t |
PCRE_EXPORT size_t |
| 135 |
regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) |
regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size) |
| 136 |
{ |
{ |
| 137 |
const char *message, *addmessage; |
const char *message, *addmessage; |
| 166 |
* Free store held by a regex * |
* Free store held by a regex * |
| 167 |
*************************************************/ |
*************************************************/ |
| 168 |
|
|
| 169 |
EXPORT void |
PCRE_EXPORT void |
| 170 |
regfree(regex_t *preg) |
regfree(regex_t *preg) |
| 171 |
{ |
{ |
| 172 |
(pcre_free)(preg->re_pcre); |
(pcre_free)(preg->re_pcre); |
| 189 |
various non-zero codes on failure |
various non-zero codes on failure |
| 190 |
*/ |
*/ |
| 191 |
|
|
| 192 |
EXPORT int |
PCRE_EXPORT int |
| 193 |
regcomp(regex_t *preg, const char *pattern, int cflags) |
regcomp(regex_t *preg, const char *pattern, int cflags) |
| 194 |
{ |
{ |
| 195 |
const char *errorptr; |
const char *errorptr; |
| 225 |
block of store on the stack, to reduce the use of malloc/free. The threshold is |
block of store on the stack, to reduce the use of malloc/free. The threshold is |
| 226 |
in a macro that can be changed at configure time. */ |
in a macro that can be changed at configure time. */ |
| 227 |
|
|
| 228 |
EXPORT int |
PCRE_EXPORT int |
| 229 |
regexec(const regex_t *preg, const char *string, size_t nmatch, |
regexec(const regex_t *preg, const char *string, size_t nmatch, |
| 230 |
regmatch_t pmatch[], int eflags) |
regmatch_t pmatch[], int eflags) |
| 231 |
{ |
{ |