/[pcre]/code/trunk/doc/html/pcre_fullinfo.html
ViewVC logotype

Contents of /code/trunk/doc/html/pcre_fullinfo.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 63 - (hide annotations) (download) (as text)
Sat Feb 24 21:40:03 2007 UTC (7 years, 6 months ago) by nigel
File MIME type: text/html
File size: 2098 byte(s)
Load pcre-4.0 into code/trunk.

1 nigel 63 <html>
2     <head>
3     <title>pcre_fullinfo specification</title>
4     </head>
5     <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6     This HTML document has been generated automatically from the original man page.
7     If there is any nonsense in it, please consult the man page, in case the
8     conversion went wrong.<br>
9     <br><b>
10     SYNOPSIS
11     </b><br>
12     <P>
13     <b>#include &#60;pcre.h&#62;</b>
14     </P>
15     <P>
16     <b>int pcre_fullinfo(const pcre *<i>code</i>, const pcre_extra *<i>extra</i>,</b>
17     <b>int <i>what</i>, void *<i>where</i>);</b>
18     </P>
19     <br><b>
20     DESCRIPTION
21     </b><br>
22     <P>
23     This function returns information about a compiled pattern. Its arguments are:
24     </P>
25     <P>
26     <pre>
27     <i>code</i> Compiled regular expression
28     <i>extra</i> Result of <b>pcre_study()</b> or NULL
29     <i>what</i> What information is required
30     <i>where</i> Where to put the information
31     </PRE>
32     </P>
33     <P>
34     The following information is available:
35     </P>
36     <P>
37     <pre>
38     PCRE_INFO_BACKREFMAX Number of highest back reference
39     PCRE_INFO_CAPTURECOUNT Number of capturing subpatterns
40     PCRE_INFO_FIRSTBYTE Fixed first byte for a match, or
41     -1 for start of string
42     or after newline, or
43     -2 otherwise
44     PCRE_INFO_FIRSTTABLE Table of first bytes
45     (after studying)
46     PCRE_INFO_LASTLITERAL Literal last byte required
47     PCRE_INFO_NAMECOUNT Number of named subpatterns
48     PCRE_INFO_NAMEENTRYSIZE Size of name table entry
49     PCRE_INFO_NAMETABLE Pointer to name table
50     PCRE_INFO_OPTIONS Options used for compilation
51     PCRE_INFO_SIZE Size of compiled pattern
52     </PRE>
53     </P>
54     <P>
55     The yield of the function is zero on success or:
56     </P>
57     <P>
58     <pre>
59     PCRE_ERROR_NULL the argument <i>code</i> was NULL
60     the argument <i>where</i> was NULL
61     PCRE_ERROR_BADMAGIC the "magic number" was not found
62     PCRE_ERROR_BADOPTION the value of <i>what</i> was invalid
63     </PRE>
64     </P>
65     <P>
66     There is a complete description of the PCRE API in the
67     <a href="pcreapi.html"><b>pcreapi</b></a>
68     page.

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12