136 lines
11 KiB
HTML
136 lines
11 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PCRE_FULLINFO</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PCRE_FULLINFO</H1>
|
|
Section: C Library Functions (3)<BR>Updated: 21 April 2014<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>int pcre_fullinfo(const pcre *</B><I>code</I>, const pcre_extra *<I>extra</I>,
|
|
<B> int </B><I>what</I>, void *<I>where</I>);
|
|
|
|
<B>int pcre16_fullinfo(const pcre16 *</B><I>code</I>, const pcre16_extra *<I>extra</I>,
|
|
<B> int </B><I>what</I>, void *<I>where</I>);
|
|
|
|
<B>int pcre32_fullinfo(const pcre32 *</B><I>code</I>, const pcre32_extra *<I>extra</I>,
|
|
<B> int </B><I>what</I>, void *<I>where</I>);
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
<P>
|
|
This function returns information about a compiled pattern. Its arguments are:
|
|
<P>
|
|
<BR> <I>code</I> Compiled regular expression
|
|
<BR> <I>extra</I> Result of <B>pcre[16|32]_study()</B> or NULL
|
|
<BR> <I>what</I> What information is required
|
|
<BR> <I>where</I> Where to put the information
|
|
<P>
|
|
The following information is available:
|
|
<P>
|
|
<BR> PCRE_INFO_BACKREFMAX Number of highest back reference
|
|
<BR> PCRE_INFO_CAPTURECOUNT Number of capturing subpatterns
|
|
<BR> PCRE_INFO_DEFAULT_TABLES Pointer to default tables
|
|
<BR> PCRE_INFO_FIRSTBYTE Fixed first data unit for a match, or
|
|
<BR> -1 for start of string
|
|
<BR> or after newline, or
|
|
<BR> -2 otherwise
|
|
<BR> PCRE_INFO_FIRSTTABLE Table of first data units (after studying)
|
|
<BR> PCRE_INFO_HASCRORLF Return 1 if explicit CR or LF matches exist
|
|
<BR> PCRE_INFO_JCHANGED Return 1 if (?J) or (?-J) was used
|
|
<BR> PCRE_INFO_JIT Return 1 after successful JIT compilation
|
|
<BR> PCRE_INFO_JITSIZE Size of JIT compiled code
|
|
<BR> PCRE_INFO_LASTLITERAL Literal last data unit required
|
|
<BR> PCRE_INFO_MINLENGTH Lower bound length of matching strings
|
|
<BR> PCRE_INFO_MATCHEMPTY Return 1 if the pattern can match an empty string,
|
|
<BR> 0 otherwise
|
|
<BR> PCRE_INFO_MATCHLIMIT Match limit if set, otherwise PCRE_RROR_UNSET
|
|
<BR> PCRE_INFO_MAXLOOKBEHIND Length (in characters) of the longest lookbehind assertion
|
|
<BR> PCRE_INFO_NAMECOUNT Number of named subpatterns
|
|
<BR> PCRE_INFO_NAMEENTRYSIZE Size of name table entry
|
|
<BR> PCRE_INFO_NAMETABLE Pointer to name table
|
|
<BR> PCRE_INFO_OKPARTIAL Return 1 if partial matching can be tried
|
|
<BR> (always returns 1 after release 8.00)
|
|
<BR> PCRE_INFO_OPTIONS Option bits used for compilation
|
|
<BR> PCRE_INFO_SIZE Size of compiled pattern
|
|
<BR> PCRE_INFO_STUDYSIZE Size of study data
|
|
<BR> PCRE_INFO_FIRSTCHARACTER Fixed first data unit for a match
|
|
<BR> PCRE_INFO_FIRSTCHARACTERFLAGS Returns
|
|
<BR> 1 if there is a first data character set, which can
|
|
<BR> then be retrieved using PCRE_INFO_FIRSTCHARACTER,
|
|
<BR> 2 if the first character is at the start of the data
|
|
<BR> string or after a newline, and
|
|
<BR> 0 otherwise
|
|
<BR> PCRE_INFO_RECURSIONLIMIT Recursion limit if set, otherwise PCRE_ERROR_UNSET
|
|
<BR> PCRE_INFO_REQUIREDCHAR Literal last data unit required
|
|
<BR> PCRE_INFO_REQUIREDCHARFLAGS Returns 1 if the last data character is set (which can then
|
|
<BR> be retrieved using PCRE_INFO_REQUIREDCHAR); 0 otherwise
|
|
<P>
|
|
The <I>where</I> argument must point to an integer variable, except for the
|
|
following <I>what</I> values:
|
|
<P>
|
|
<BR> PCRE_INFO_DEFAULT_TABLES const uint8_t *
|
|
<BR> PCRE_INFO_FIRSTCHARACTER uint32_t
|
|
<BR> PCRE_INFO_FIRSTTABLE const uint8_t *
|
|
<BR> PCRE_INFO_JITSIZE size_t
|
|
<BR> PCRE_INFO_MATCHLIMIT uint32_t
|
|
<BR> PCRE_INFO_NAMETABLE PCRE_SPTR16 (16-bit library)
|
|
<BR> PCRE_INFO_NAMETABLE PCRE_SPTR32 (32-bit library)
|
|
<BR> PCRE_INFO_NAMETABLE const unsigned char * (8-bit library)
|
|
<BR> PCRE_INFO_OPTIONS unsigned long int
|
|
<BR> PCRE_INFO_SIZE size_t
|
|
<BR> PCRE_INFO_STUDYSIZE size_t
|
|
<BR> PCRE_INFO_RECURSIONLIMIT uint32_t
|
|
<BR> PCRE_INFO_REQUIREDCHAR uint32_t
|
|
<P>
|
|
The yield of the function is zero on success or:
|
|
<P>
|
|
<BR> PCRE_ERROR_NULL the argument <I>code</I> was NULL
|
|
<BR> the argument <I>where</I> was NULL
|
|
<BR> PCRE_ERROR_BADMAGIC the "magic number" was not found
|
|
<BR> PCRE_ERROR_BADOPTION the value of <I>what</I> was invalid
|
|
<BR> PCRE_ERROR_UNSET the option was not set
|
|
<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:51 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|