89 lines
2.4 KiB
HTML
89 lines
2.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PCRE_STUDY</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PCRE_STUDY</H1>
|
|
Section: C Library Functions (3)<BR>Updated: 24 June 2012<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
PCRE - Perl-compatible regular expressions
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
<P>
|
|
<B>#include <<A HREF="file:///usr/include/pcre.h">pcre.h</A>></B>
|
|
|
|
<P>
|
|
|
|
<PRE>
|
|
<B>pcre_extra *pcre_study(const pcre *</B><I>code</I>, int <I>options</I>,
|
|
<B> const char **</B><I>errptr</I>);
|
|
|
|
<B>pcre16_extra *pcre16_study(const pcre16 *</B><I>code</I>, int <I>options</I>,
|
|
<B> const char **</B><I>errptr</I>);
|
|
|
|
<B>pcre32_extra *pcre32_study(const pcre32 *</B><I>code</I>, int <I>options</I>,
|
|
<B> const char **</B><I>errptr</I>);
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
<P>
|
|
This function studies a compiled pattern, to see if additional information can
|
|
be extracted that might speed up matching. Its arguments are:
|
|
<P>
|
|
<BR> <I>code</I> A compiled regular expression
|
|
<BR> <I>options</I> Options for <B>pcre[16|32]_study()</B>
|
|
<BR> <I>errptr</I> Where to put an error message
|
|
<P>
|
|
If the function succeeds, it returns a value that can be passed to
|
|
<B>pcre[16|32]_exec()</B> or <B>pcre[16|32]_dfa_exec()</B> via their <I>extra</I>
|
|
arguments.
|
|
<P>
|
|
|
|
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
|
|
the error value. It is NULL in first case.
|
|
<P>
|
|
|
|
The only option is PCRE_STUDY_JIT_COMPILE. It requests just-in-time compilation
|
|
if possible. If PCRE has been compiled without JIT support, this option is
|
|
ignored. See the
|
|
|
|
<B>pcrejit</B>
|
|
|
|
page for further details.
|
|
<P>
|
|
|
|
There is a complete description of the PCRE native API in the
|
|
|
|
<B>pcreapi</B>
|
|
|
|
page and a description of the POSIX API in the
|
|
|
|
<B>pcreposix</B>
|
|
|
|
page.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:52 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|