version 1.1.1.1, 2012/02/21 23:05:52
|
version 1.1.1.3, 2012/10/09 09:19:17
|
Line 1
|
Line 1
|
.TH PCRE_STUDY 3 | .TH PCRE_STUDY 3 "13 January 2012" "PCRE 8.30" |
.SH NAME |
.SH NAME |
PCRE - Perl-compatible regular expressions |
PCRE - Perl-compatible regular expressions |
.SH SYNOPSIS |
.SH SYNOPSIS |
Line 10 PCRE - Perl-compatible regular expressions
|
Line 10 PCRE - Perl-compatible regular expressions
|
.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP, |
.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP, |
.ti +5n |
.ti +5n |
.B const char **\fIerrptr\fP); |
.B const char **\fIerrptr\fP); |
|
.PP |
|
.B pcre16_extra *pcre16_study(const pcre16 *\fIcode\fP, int \fIoptions\fP, |
|
.ti +5n |
|
.B const char **\fIerrptr\fP); |
. |
. |
.SH DESCRIPTION |
.SH DESCRIPTION |
.rs |
.rs |
Line 18 This function studies a compiled pattern, to see if ad
|
Line 22 This function studies a compiled pattern, to see if ad
|
be extracted that might speed up matching. Its arguments are: |
be extracted that might speed up matching. Its arguments are: |
.sp |
.sp |
\fIcode\fP A compiled regular expression |
\fIcode\fP A compiled regular expression |
\fIoptions\fP Options for \fBpcre_study()\fP | \fIoptions\fP Options for \fBpcre[16]_study()\fP |
\fIerrptr\fP Where to put an error message |
\fIerrptr\fP Where to put an error message |
.sp |
.sp |
If the function succeeds, it returns a value that can be passed to |
If the function succeeds, it returns a value that can be passed to |
\fBpcre_exec()\fP or \fBpcre_dfa_exec()\fP via their \fIextra\fP arguments. | \fBpcre[16]_exec()\fP or \fBpcre[16]_dfa_exec()\fP via their \fIextra\fP |
| arguments. |
.P |
.P |
If the function returns NULL, either it could not find any additional |
If the function returns NULL, either it could not find any additional |
information, or there was an error. You can tell the difference by looking at |
information, or there was an error. You can tell the difference by looking at |