1PCRE_FULLINFO(3) Library Functions Manual PCRE_FULLINFO(3)
2
3
4
6 PCRE - Perl-compatible regular expressions
7
9
10 #include <pcre.h>
11
12 int pcre_fullinfo(const pcre *code, const pcre_extra *extra,
13 int what, void *where);
14
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) or (?-J) was used
36 PCRE_INFO_LASTLITERAL Literal last byte required
37 PCRE_INFO_MINLENGTH Lower bound length of matching strings
38 PCRE_INFO_NAMECOUNT Number of named subpatterns
39 PCRE_INFO_NAMEENTRYSIZE Size of name table entry
40 PCRE_INFO_NAMETABLE Pointer to name table
41 PCRE_INFO_OKPARTIAL Return 1 if partial matching can be tried
42 (always returns 1 after release 8.00)
43 PCRE_INFO_OPTIONS Option bits used for compilation
44 PCRE_INFO_SIZE Size of compiled pattern
45 PCRE_INFO_STUDYSIZE Size of study data
46
47 The yield of the function is zero on success or:
48
49 PCRE_ERROR_NULL the argument code was NULL
50 the argument where was NULL
51 PCRE_ERROR_BADMAGIC the "magic number" was not found
52 PCRE_ERROR_BADOPTION the value of what was invalid
53
54 There is a complete description of the PCRE native API in the pcreapi
55 page and a description of the POSIX API in the pcreposix page.
56
57
58
59 PCRE_FULLINFO(3)