ViewVC logotype

Contents of /code/tags/pcre-7.4/doc/pcre_dfa_exec.3

Parent Directory Parent Directory | Revision Log Revision Log

Revision 262 - (show annotations)
Fri Sep 21 08:41:43 2007 UTC (13 years, 7 months ago) by ph10
File size: 3405 byte(s)
Tag 7.4
3 PCRE - Perl-compatible regular expressions
5 .rs
6 .sp
7 .B #include <pcre.h>
8 .PP
9 .SM
10 .B int pcre_dfa_exec(const pcre *\fIcode\fP, "const pcre_extra *\fIextra\fP,"
11 .ti +5n
12 .B "const char *\fIsubject\fP," int \fIlength\fP, int \fIstartoffset\fP,
13 .ti +5n
14 .B int \fIoptions\fP, int *\fIovector\fP, int \fIovecsize\fP,
15 .ti +5n
16 .B int *\fIworkspace\fP, int \fIwscount\fP);
17 .
19 .rs
20 .sp
21 This function matches a compiled regular expression against a given subject
22 string, using an alternative matching algorithm that scans the subject string
23 just once (\fInot\fP Perl-compatible). Note that the main, Perl-compatible,
24 matching function is \fBpcre_exec()\fP. The arguments for this function are:
25 .sp
26 \fIcode\fP Points to the compiled pattern
27 \fIextra\fP Points to an associated \fBpcre_extra\fP structure,
28 or is NULL
29 \fIsubject\fP Points to the subject string
30 \fIlength\fP Length of the subject string, in bytes
31 \fIstartoffset\fP Offset in bytes in the subject at which to
32 start matching
33 \fIoptions\fP Option bits
34 \fIovector\fP Points to a vector of ints for result offsets
35 \fIovecsize\fP Number of elements in the vector
36 \fIworkspace\fP Points to a vector of ints used as working space
37 \fIwscount\fP Number of elements in the vector
38 .sp
39 The options are:
40 .sp
41 PCRE_ANCHORED Match only at the first position
42 PCRE_BSR_ANYCRLF \eR matches only CR, LF, or CRLF
43 PCRE_BSR_UNICODE \eR matches all Unicode line endings
44 PCRE_NEWLINE_ANY Recognize any Unicode newline sequence
45 PCRE_NEWLINE_ANYCRLF Recognize CR, LF, and CRLF as newline sequences
46 PCRE_NEWLINE_CR Set CR as the newline sequence
47 PCRE_NEWLINE_CRLF Set CRLF as the newline sequence
48 PCRE_NEWLINE_LF Set LF as the newline sequence
49 PCRE_NOTBOL Subject is not the beginning of a line
50 PCRE_NOTEOL Subject is not the end of a line
51 PCRE_NOTEMPTY An empty string is not a valid match
52 PCRE_NO_UTF8_CHECK Do not check the subject for UTF-8
53 validity (only relevant if PCRE_UTF8
54 was set at compile time)
55 PCRE_PARTIAL Return PCRE_ERROR_PARTIAL for a partial match
56 PCRE_DFA_SHORTEST Return only the shortest match
57 PCRE_DFA_RESTART This is a restart after a partial match
58 .sp
59 There are restrictions on what may appear in a pattern when using this matching
60 function. Details are given in the
61 .\" HREF
62 \fBpcrematching\fP
63 .\"
64 documentation.
65 .P
66 A \fBpcre_extra\fP structure contains the following fields:
67 .sp
68 \fIflags\fP Bits indicating which fields are set
69 \fIstudy_data\fP Opaque data from \fBpcre_study()\fP
70 \fImatch_limit\fP Limit on internal resource use
71 \fImatch_limit_recursion\fP Limit on internal recursion depth
72 \fIcallout_data\fP Opaque data passed back to callouts
73 \fItables\fP Points to character tables or is NULL
74 .sp
77 PCRE_EXTRA_TABLES. For this matching function, the \fImatch_limit\fP and
78 \fImatch_limit_recursion\fP fields are not used, and must not be set.
79 .P
80 There is a complete description of the PCRE native API in the
81 .\" HREF
82 \fBpcreapi\fP
83 .\"
84 page and a description of the POSIX API in the
85 .\" HREF
86 \fBpcreposix\fP
87 .\"
88 page.


Name Value
svn:eol-style native
svn:keywords "Author Date Id Revision Url"

  ViewVC Help
Powered by ViewVC 1.1.5