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

NAME

6       PCRE2 - Perl-compatible regular expressions (revised API)
7

SYNOPSIS

9
10       #include <pcre2.h>
11
12       int pcre2_dfa_match(const pcre2_code *code, PCRE2_SPTR subject,
13         PCRE2_SIZE length, PCRE2_SIZE startoffset,
14         uint32_t options, pcre2_match_data *match_data,
15         pcre2_match_context *mcontext,
16         int *workspace, PCRE2_SIZE wscount);
17

DESCRIPTION

19
20       This  function  matches  a  compiled regular expression against a given
21       subject string, using an alternative matching algorithm that scans  the
22       subject  string  just  once (not Perl-compatible). (The Perl-compatible
23       matching function is pcre2_match().) The arguments  for  this  function
24       are:
25
26         code         Points to the compiled pattern
27         subject      Points to the subject string
28         length       Length of the subject string
29         startoffset  Offset in the subject at which to start matching
30         options      Option bits
31         match_data   Points to a match data block, for results
32         mcontext     Points to a match context, or is NULL
33         workspace    Points to a vector of ints used as working space
34         wscount      Number of elements in the vector
35
36       For  pcre2_dfa_match(),  a  match context is needed only if you want to
37       set up a callout function or specify the recursion  limit.  The  length
38       and startoffset values are code units, not characters. The options are:
39
40         PCRE2_ANCHORED          Match only at the first position
41         PCRE2_NOTBOL            Subject is not the beginning of a line
42         PCRE2_NOTEOL            Subject is not the end of a line
43         PCRE2_NOTEMPTY          An empty string is not a valid match
44         PCRE2_NOTEMPTY_ATSTART  An empty string at the start of the subject
45                                  is not a valid match
46         PCRE2_NO_UTF_CHECK      Do not check the subject for UTF
47                                  validity (only relevant if PCRE2_UTF
48                                  was set at compile time)
49         PCRE2_PARTIAL_SOFT      Return PCRE2_ERROR_PARTIAL for a partial
50                                   match if no full matches are found
51         PCRE2_PARTIAL_HARD       Return  PCRE2_ERROR_PARTIAL  for  a  partial
52       match
53                                  even if there is a full match as well
54         PCRE2_DFA_RESTART       Restart after a partial match
55         PCRE2_DFA_SHORTEST      Return only the shortest match
56
57       There are restrictions on what may appear in a pattern when using  this
58       matching  function.  Details  are given in the pcre2matching documenta‐
59       tion. For details of partial matching, see the pcre2partial page. There
60       is  a complete description of the PCRE2 native API in the pcre2api page
61       and a description of the POSIX API in the pcre2posix page.
62
63
64
65PCRE2 10.23                    23 December 2016             PCRE2_DFA_MATCH(3)
Impressum