version 1.1, 2012/02/21 23:05:51
|
version 1.1.1.5, 2014/06/15 19:46:04
|
Line 1
|
Line 1
|
.TH PCREPOSIX 3 | .TH PCREPOSIX 3 "09 January 2012" "PCRE 8.30" |
.SH NAME |
.SH NAME |
PCRE - Perl-compatible regular expressions. |
PCRE - Perl-compatible regular expressions. |
.SH "SYNOPSIS OF POSIX API" | .SH "SYNOPSIS" |
.rs |
.rs |
.sp |
.sp |
.B #include <pcreposix.h> |
.B #include <pcreposix.h> |
.PP |
.PP |
.SM | .nf |
.B int regcomp(regex_t *\fIpreg\fP, const char *\fIpattern\fP, |
.B int regcomp(regex_t *\fIpreg\fP, const char *\fIpattern\fP, |
.ti +5n | .B " int \fIcflags\fP);" |
.B int \fIcflags\fP); | .B int regexec(regex_t *\fIpreg\fP, const char *\fIstring\fP, |
.PP | |
.B int regexec(regex_t *\fIpreg\fP, const char *\fIstring\fP, |
.B int regexec(regex_t *\fIpreg\fP, const char *\fIstring\fP, |
.ti +5n | .B " size_t \fInmatch\fP, regmatch_t \fIpmatch\fP[], int \fIeflags\fP);" |
.B size_t \fInmatch\fP, regmatch_t \fIpmatch\fP[], int \fIeflags\fP); | .B " size_t regerror(int \fIerrcode\fP, const regex_t *\fIpreg\fP," |
.PP | .B " char *\fIerrbuf\fP, size_t \fIerrbuf_size\fP);" |
.B size_t regerror(int \fIerrcode\fP, const regex_t *\fIpreg\fP, | .sp |
.ti +5n | |
.B char *\fIerrbuf\fP, size_t \fIerrbuf_size\fP); | |
.PP | |
.B void regfree(regex_t *\fIpreg\fP); |
.B void regfree(regex_t *\fIpreg\fP); |
|
.fi |
. |
. |
.SH DESCRIPTION |
.SH DESCRIPTION |
.rs |
.rs |
.sp |
.sp |
This set of functions provides a POSIX-style API to the PCRE regular expression | This set of functions provides a POSIX-style API for the PCRE regular |
package. See the | expression 8-bit library. See the |
.\" HREF |
.\" HREF |
\fBpcreapi\fP |
\fBpcreapi\fP |
.\" |
.\" |
documentation for a description of PCRE's native API, which contains much |
documentation for a description of PCRE's native API, which contains much |
additional functionality. | additional functionality. There is no POSIX-style wrapper for PCRE's 16-bit |
| and 32-bit library. |
.P |
.P |
The functions described here are just wrapper functions that ultimately call |
The functions described here are just wrapper functions that ultimately call |
the PCRE native API. Their prototypes are defined in the \fBpcreposix.h\fP |
the PCRE native API. Their prototypes are defined in the \fBpcreposix.h\fP |
Line 264 Cambridge CB2 3QH, England.
|
Line 262 Cambridge CB2 3QH, England.
|
.rs |
.rs |
.sp |
.sp |
.nf |
.nf |
Last updated: 16 May 2010 | Last updated: 09 January 2012 |
Copyright (c) 1997-2010 University of Cambridge. | Copyright (c) 1997-2012 University of Cambridge. |
.fi |
.fi |