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

NAME

6       PCRE - Perl-compatible regular expressions
7

SYNOPSIS

9
10       #include <pcre.h>
11
12       int pcre_jit_exec(const pcre *code, const pcre_extra *extra,
13            const char *subject, int length, int startoffset,
14            int options, int *ovector, int ovecsize,
15            pcre_jit_stack *jstack);
16
17       int pcre16_jit_exec(const pcre16 *code, const pcre16_extra *extra,
18            PCRE_SPTR16 subject, int length, int startoffset,
19            int options, int *ovector, int ovecsize,
20            pcre_jit_stack *jstack);
21
22       int pcre32_jit_exec(const pcre32 *code, const pcre32_extra *extra,
23            PCRE_SPTR32 subject, int length, int startoffset,
24            int options, int *ovector, int ovecsize,
25            pcre_jit_stack *jstack);
26

DESCRIPTION

28
29       This  function matches a compiled regular expression that has been suc‐
30       cessfully studied with one of the JIT options against a  given  subject
31       string,  using  a matching algorithm that is similar to Perl's. It is a
32       "fast path" interface to JIT, and it bypasses some of the sanity checks
33       that  pcre_exec()  applies.  It returns offsets to captured substrings.
34       Its arguments are:
35
36         code         Points to the compiled pattern
37         extra        Points to an associated pcre[16|32]_extra structure,
38                        or is NULL
39         subject      Points to the subject string
40         length       Length of the subject string, in bytes
41         startoffset  Offset in bytes in the subject at which to
42                        start matching
43         options      Option bits
44         ovector      Points to a vector of ints for result offsets
45         ovecsize     Number of elements in the vector (a multiple of 3)
46         jstack       Pointer to a JIT stack
47
48       The allowed options are:
49
50         PCRE_NOTBOL            Subject string is not the beginning of a line
51         PCRE_NOTEOL            Subject string is not the end of a line
52         PCRE_NOTEMPTY          An empty string is not a valid match
53         PCRE_NOTEMPTY_ATSTART  An empty string at the start of the subject
54                                  is not a valid match
55         PCRE_NO_UTF16_CHECK    Do not check the subject for UTF-16
56                                  validity (only relevant if PCRE_UTF16
57                                  was set at compile time)
58         PCRE_NO_UTF32_CHECK    Do not check the subject for UTF-32
59                                  validity (only relevant if PCRE_UTF32
60                                  was set at compile time)
61         PCRE_NO_UTF8_CHECK     Do not check the subject for UTF-8
62                                  validity (only relevant if PCRE_UTF8
63                                  was set at compile time)
64         PCRE_PARTIAL           ) Return PCRE_ERROR_PARTIAL for a partial
65         PCRE_PARTIAL_SOFT      )   match if no full matches are found
66         PCRE_PARTIAL_HARD      Return PCRE_ERROR_PARTIAL for a partial match
67                                  if that is found before a full match
68
69       However, the PCRE_NO_UTF[8|16|32]_CHECK options have no effect, as this
70       check  is  never  applied.  For  details  of  partial matching, see the
71       pcrepartial page. A pcre_extra structure contains the following fields:
72
73         flags            Bits indicating which fields are set
74         study_data       Opaque data from pcre[16|32]_study()
75         match_limit      Limit on internal resource use
76         match_limit_recursion  Limit on internal recursion depth
77         callout_data     Opaque data passed back to callouts
78         tables           Points to character tables or is NULL
79         mark             For passing back a *MARK pointer
80         executable_jit   Opaque data from JIT compilation
81
82       The  flag  bits  are   PCRE_EXTRA_STUDY_DATA,   PCRE_EXTRA_MATCH_LIMIT,
83       PCRE_EXTRA_MATCH_LIMIT_RECURSION,              PCRE_EXTRA_CALLOUT_DATA,
84       PCRE_EXTRA_TABLES, PCRE_EXTRA_MARK and PCRE_EXTRA_EXECUTABLE_JIT.
85
86       There is a complete description of the PCRE native API in  the  pcreapi
87       page and a description of the JIT API in the pcrejit page.
88
89
90
91PCRE 8.30                       31 October 2012                   PCRE_EXEC(3)
Impressum