blob: f37a5e1c96bf3dfc57ecf18f9142854a8729ed60 [file] [log] [blame]
Tristan Matthews04616462013-11-14 16:09:34 -05001.TH PCRE_STUDY 3
2.SH NAME
3PCRE - Perl-compatible regular expressions
4.SH SYNOPSIS
5.rs
6.sp
7.B #include <pcre.h>
8.PP
9.SM
10.B pcre_extra *pcre_study(const pcre *\fIcode\fP, int \fIoptions\fP,
11.ti +5n
12.B const char **\fIerrptr\fP);
13.
14.SH DESCRIPTION
15.rs
16.sp
17This function studies a compiled pattern, to see if additional information can
18be extracted that might speed up matching. Its arguments are:
19.sp
20 \fIcode\fP A compiled regular expression
21 \fIoptions\fP Options for \fBpcre_study()\fP
22 \fIerrptr\fP Where to put an error message
23.sp
24If the function succeeds, it returns a value that can be passed to
25\fBpcre_exec()\fP or \fBpcre_dfa_exec()\fP via their \fIextra\fP arguments.
26.P
27If the function returns NULL, either it could not find any additional
28information, or there was an error. You can tell the difference by looking at
29the error value. It is NULL in first case.
30.P
31The only option is PCRE_STUDY_JIT_COMPILE. It requests just-in-time compilation
32if possible. If PCRE has been compiled without JIT support, this option is
33ignored. See the
34.\" HREF
35\fBpcrejit\fP
36.\"
37page for further details.
38.P
39There is a complete description of the PCRE native API in the
40.\" HREF
41\fBpcreapi\fP
42.\"
43page and a description of the POSIX API in the
44.\" HREF
45\fBpcreposix\fP
46.\"
47page.