| 160 |
* Translate error code to string * |
* Translate error code to string * |
| 161 |
*************************************************/ |
*************************************************/ |
| 162 |
|
|
| 163 |
PCREPOSIX_EXP_DEFN size_t |
PCREPOSIX_EXP_DEFN size_t PCRE_CALL_CONVENTION |
| 164 |
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) |
| 165 |
{ |
{ |
| 166 |
const char *message, *addmessage; |
const char *message, *addmessage; |
| 195 |
* Free store held by a regex * |
* Free store held by a regex * |
| 196 |
*************************************************/ |
*************************************************/ |
| 197 |
|
|
| 198 |
PCREPOSIX_EXP_DEFN void |
PCREPOSIX_EXP_DEFN void PCRE_CALL_CONVENTION |
| 199 |
regfree(regex_t *preg) |
regfree(regex_t *preg) |
| 200 |
{ |
{ |
| 201 |
(pcre_free)(preg->re_pcre); |
(pcre_free)(preg->re_pcre); |
| 218 |
various non-zero codes on failure |
various non-zero codes on failure |
| 219 |
*/ |
*/ |
| 220 |
|
|
| 221 |
PCREPOSIX_EXP_DEFN int |
PCREPOSIX_EXP_DEFN int PCRE_CALL_CONVENTION |
| 222 |
regcomp(regex_t *preg, const char *pattern, int cflags) |
regcomp(regex_t *preg, const char *pattern, int cflags) |
| 223 |
{ |
{ |
| 224 |
const char *errorptr; |
const char *errorptr; |
| 260 |
be set. When this is the case, the nmatch and pmatch arguments are ignored, and |
be set. When this is the case, the nmatch and pmatch arguments are ignored, and |
| 261 |
the only result is yes/no/error. */ |
the only result is yes/no/error. */ |
| 262 |
|
|
| 263 |
PCREPOSIX_EXP_DEFN int |
PCREPOSIX_EXP_DEFN int PCRE_CALL_CONVENTION |
| 264 |
regexec(const regex_t *preg, const char *string, size_t nmatch, |
regexec(const regex_t *preg, const char *string, size_t nmatch, |
| 265 |
regmatch_t pmatch[], int eflags) |
regmatch_t pmatch[], int eflags) |
| 266 |
{ |
{ |