1PCRE_FULLINFO(3)           Library Functions Manual           PCRE_FULLINFO(3)
2
3
4

NAME

6       PCRE - Perl-compatible regular expressions
7

SYNOPSIS

9
10       #include <pcre.h>
11
12       int pcre_fullinfo(const pcre *code, const pcre_extra *extra,
13            int what, void *where);
14

DESCRIPTION

16
17       This  function  returns information about a compiled pattern. Its argu‐
18       ments are:
19
20         code                      Compiled regular expression
21         extra                     Result of pcre_study() or NULL
22         what                      What information is required
23         where                     Where to put the information
24
25       The following information is available:
26
27         PCRE_INFO_BACKREFMAX      Number of highest back reference
28         PCRE_INFO_CAPTURECOUNT    Number of capturing subpatterns
29         PCRE_INFO_DEFAULT_TABLES  Pointer to default tables
30         PCRE_INFO_FIRSTBYTE       Fixed first byte for a match, or
31                                     -1 for start of string
32                                        or after newline, or
33                                     -2 otherwise
34         PCRE_INFO_FIRSTTABLE      Table of first bytes (after studying)
35         PCRE_INFO_JCHANGED        Return 1 if (?J) was used
36         PCRE_INFO_LASTLITERAL     Literal last byte required
37         PCRE_INFO_NAMECOUNT       Number of named subpatterns
38         PCRE_INFO_NAMEENTRYSIZE   Size of name table entry
39         PCRE_INFO_NAMETABLE       Pointer to name table
40         PCRE_INFO_OKPARTIAL       Return 1 if partial matching can be tried
41         PCRE_INFO_OPTIONS         Option bits used for compilation
42         PCRE_INFO_SIZE            Size of compiled pattern
43         PCRE_INFO_STUDYSIZE       Size of study data
44
45       The yield of the function is zero on success or:
46
47         PCRE_ERROR_NULL           the argument code was NULL
48                                   the argument where was NULL
49         PCRE_ERROR_BADMAGIC       the "magic number" was not found
50         PCRE_ERROR_BADOPTION      the value of what was invalid
51
52       There is a complete description of the PCRE native API in  the  pcreapi
53       page and a description of the POSIX API in the pcreposix page.
54
55
56
57                                                              PCRE_FULLINFO(3)
Impressum