141 |
* Translate error code to string * |
* Translate error code to string * |
142 |
*************************************************/ |
*************************************************/ |
143 |
|
|
144 |
PCRE_DATA_SCOPE size_t |
PCREPOSIX_EXP_DEFN size_t |
145 |
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) |
146 |
{ |
{ |
147 |
const char *message, *addmessage; |
const char *message, *addmessage; |
176 |
* Free store held by a regex * |
* Free store held by a regex * |
177 |
*************************************************/ |
*************************************************/ |
178 |
|
|
179 |
PCRE_DATA_SCOPE void |
PCREPOSIX_EXP_DEFN void |
180 |
regfree(regex_t *preg) |
regfree(regex_t *preg) |
181 |
{ |
{ |
182 |
(pcre_free)(preg->re_pcre); |
(pcre_free)(preg->re_pcre); |
199 |
various non-zero codes on failure |
various non-zero codes on failure |
200 |
*/ |
*/ |
201 |
|
|
202 |
PCRE_DATA_SCOPE int |
PCREPOSIX_EXP_DEFN int |
203 |
regcomp(regex_t *preg, const char *pattern, int cflags) |
regcomp(regex_t *preg, const char *pattern, int cflags) |
204 |
{ |
{ |
205 |
const char *errorptr; |
const char *errorptr; |
241 |
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 |
242 |
the only result is yes/no/error. */ |
the only result is yes/no/error. */ |
243 |
|
|
244 |
PCRE_DATA_SCOPE int |
PCREPOSIX_EXP_DEFN int |
245 |
regexec(const regex_t *preg, const char *string, size_t nmatch, |
regexec(const regex_t *preg, const char *string, size_t nmatch, |
246 |
regmatch_t pmatch[], int eflags) |
regmatch_t pmatch[], int eflags) |
247 |
{ |
{ |