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

NAME

6       PCRE - Perl-compatible regular expressions
7

SYNOPSIS

9
10       #include <pcre.h>
11
12       int pcre_dfa_exec(const pcre *code, const pcre_extra *extra,
13            const char *subject, int length, int startoffset,
14            int options, int *ovector, int ovecsize,
15            int *workspace, int wscount);
16

DESCRIPTION

18
19       This  function  matches  a  compiled regular expression against a given
20       subject string, using an alternative matching algorithm that scans  the
21       subject  string  just  once  (not Perl-compatible). Note that the main,
22       Perl-compatible, matching function is pcre_exec().  The  arguments  for
23       this function are:
24
25         code         Points to the compiled pattern
26         extra        Points to an associated pcre_extra structure,
27                        or is NULL
28         subject      Points to the subject string
29         length       Length of the subject string, in bytes
30         startoffset  Offset in bytes in the subject at which to
31                        start matching
32         options      Option bits
33         ovector      Points to a vector of ints for result offsets
34         ovecsize     Number of elements in the vector
35         workspace    Points to a vector of ints used as working space
36         wscount      Number of elements in the vector
37
38       The options are:
39
40         PCRE_ANCHORED      Match only at the first position
41         PCRE_NEWLINE_ANY   Recognize any Unicode newline sequence
42         PCRE_NEWLINE_ANYCRLF  Recognize CR, LF, and CRLF as newline sequences
43         PCRE_NEWLINE_CR    Set CR as the newline sequence
44         PCRE_NEWLINE_CRLF  Set CRLF as the newline sequence
45         PCRE_NEWLINE_LF    Set LF as the newline sequence
46         PCRE_NOTBOL        Subject is not the beginning of a line
47         PCRE_NOTEOL        Subject is not the end of a line
48         PCRE_NOTEMPTY      An empty string is not a valid match
49         PCRE_NO_UTF8_CHECK Do not check the subject for UTF-8
50                              validity (only relevant if PCRE_UTF8
51                              was set at compile time)
52         PCRE_PARTIAL       Return PCRE_ERROR_PARTIAL for a partial match
53         PCRE_DFA_SHORTEST  Return only the shortest match
54         PCRE_DFA_RESTART   This is a restart after a partial match
55
56       There  are restrictions on what may appear in a pattern when using this
57       matching function. Details are given in the pcrematching documentation.
58
59       A pcre_extra structure contains the following fields:
60
61         flags        Bits indicating which fields are set
62         study_data   Opaque data from pcre_study()
63         match_limit  Limit on internal resource use
64         match_limit_recursion  Limit on internal recursion depth
65         callout_data Opaque data passed back to callouts
66         tables       Points to character tables or is NULL
67
68       The  flag  bits  are   PCRE_EXTRA_STUDY_DATA,   PCRE_EXTRA_MATCH_LIMIT,
69       PCRE_EXTRA_MATCH_LIMIT_RECURSION,      PCRE_EXTRA_CALLOUT_DATA,     and
70       PCRE_EXTRA_TABLES. For this  matching  function,  the  match_limit  and
71       match_limit_recursion fields are not used, and must not be set.
72
73       There  is  a complete description of the PCRE native API in the pcreapi
74       page and a description of the POSIX API in the pcreposix page.
75
76
77
78                                                              PCRE_DFA_EXEC(3)
Impressum