version 1.1.1.2, 2012/02/21 23:50:25
|
version 1.1.1.4, 2014/06/15 19:46:05
|
Line 20 SYNOPSIS
|
Line 20 SYNOPSIS
|
</P> |
</P> |
<P> |
<P> |
<b>int pcre_dfa_exec(const pcre *<i>code</i>, const pcre_extra *<i>extra</i>,</b> |
<b>int pcre_dfa_exec(const pcre *<i>code</i>, const pcre_extra *<i>extra</i>,</b> |
<b>const char *<i>subject</i>, int <i>length</i>, int <i>startoffset</i>,</b> | <b> const char *<i>subject</i>, int <i>length</i>, int <i>startoffset</i>,</b> |
<b>int <i>options</i>, int *<i>ovector</i>, int <i>ovecsize</i>,</b> | <b> int <i>options</i>, int *<i>ovector</i>, int <i>ovecsize</i>,</b> |
<b>int *<i>workspace</i>, int <i>wscount</i>);</b> | <b> int *<i>workspace</i>, int <i>wscount</i>);</b> |
</P> | <br> |
<P> | <br> |
<b>int pcre16_dfa_exec(const pcre16 *<i>code</i>, const pcre16_extra *<i>extra</i>,</b> |
<b>int pcre16_dfa_exec(const pcre16 *<i>code</i>, const pcre16_extra *<i>extra</i>,</b> |
<b>PCRE_SPTR16 <i>subject</i>, int <i>length</i>, int <i>startoffset</i>,</b> | <b> PCRE_SPTR16 <i>subject</i>, int <i>length</i>, int <i>startoffset</i>,</b> |
<b>int <i>options</i>, int *<i>ovector</i>, int <i>ovecsize</i>,</b> | <b> int <i>options</i>, int *<i>ovector</i>, int <i>ovecsize</i>,</b> |
<b>int *<i>workspace</i>, int <i>wscount</i>);</b> | <b> int *<i>workspace</i>, int <i>wscount</i>);</b> |
| <br> |
| <br> |
| <b>int pcre32_dfa_exec(const pcre32 *<i>code</i>, const pcre32_extra *<i>extra</i>,</b> |
| <b> PCRE_SPTR32 <i>subject</i>, int <i>length</i>, int <i>startoffset</i>,</b> |
| <b> int <i>options</i>, int *<i>ovector</i>, int <i>ovecsize</i>,</b> |
| <b> int *<i>workspace</i>, int <i>wscount</i>);</b> |
</P> |
</P> |
<br><b> |
<br><b> |
DESCRIPTION |
DESCRIPTION |
Line 37 DESCRIPTION
|
Line 43 DESCRIPTION
|
This function matches a compiled regular expression against a given subject |
This function matches a compiled regular expression against a given subject |
string, using an alternative matching algorithm that scans the subject string |
string, using an alternative matching algorithm that scans the subject string |
just once (<i>not</i> Perl-compatible). Note that the main, Perl-compatible, |
just once (<i>not</i> Perl-compatible). Note that the main, Perl-compatible, |
matching function is <b>pcre[16]_exec()</b>. The arguments for this function | matching function is <b>pcre[16|32]_exec()</b>. The arguments for this function |
are: |
are: |
<pre> |
<pre> |
<i>code</i> Points to the compiled pattern |
<i>code</i> Points to the compiled pattern |
<i>extra</i> Points to an associated <b>pcre[16]_extra</b> structure, | <i>extra</i> Points to an associated <b>pcre[16|32]_extra</b> structure, |
or is NULL |
or is NULL |
<i>subject</i> Points to the subject string |
<i>subject</i> Points to the subject string |
<i>length</i> Length of the subject string, in bytes | <i>length</i> Length of the subject string |
<i>startoffset</i> Offset in bytes in the subject at which to | <i>startoffset</i> Offset in the subject at which to start matching |
start matching | |
<i>options</i> Option bits |
<i>options</i> Option bits |
<i>ovector</i> Points to a vector of ints for result offsets |
<i>ovector</i> Points to a vector of ints for result offsets |
<i>ovecsize</i> Number of elements in the vector |
<i>ovecsize</i> Number of elements in the vector |
<i>workspace</i> Points to a vector of ints used as working space |
<i>workspace</i> Points to a vector of ints used as working space |
<i>wscount</i> Number of elements in the vector |
<i>wscount</i> Number of elements in the vector |
</pre> |
</pre> |
The options are: | The units for <i>length</i> and <i>startoffset</i> are bytes for |
| <b>pcre_exec()</b>, 16-bit data items for <b>pcre16_exec()</b>, and 32-bit items |
| for <b>pcre32_exec()</b>. The options are: |
<pre> |
<pre> |
PCRE_ANCHORED Match only at the first position |
PCRE_ANCHORED Match only at the first position |
PCRE_BSR_ANYCRLF \R matches only CR, LF, or CRLF |
PCRE_BSR_ANYCRLF \R matches only CR, LF, or CRLF |
Line 72 The options are:
|
Line 79 The options are:
|
PCRE_NO_UTF16_CHECK Do not check the subject for UTF-16 |
PCRE_NO_UTF16_CHECK Do not check the subject for UTF-16 |
validity (only relevant if PCRE_UTF16 |
validity (only relevant if PCRE_UTF16 |
was set at compile time) |
was set at compile time) |
|
PCRE_NO_UTF32_CHECK Do not check the subject for UTF-32 |
|
validity (only relevant if PCRE_UTF32 |
|
was set at compile time) |
PCRE_NO_UTF8_CHECK Do not check the subject for UTF-8 |
PCRE_NO_UTF8_CHECK Do not check the subject for UTF-8 |
validity (only relevant if PCRE_UTF8 |
validity (only relevant if PCRE_UTF8 |
was set at compile time) |
was set at compile time) |
Line 90 documentation. For details of partial matching, see th
|
Line 100 documentation. For details of partial matching, see th
|
page. |
page. |
</P> |
</P> |
<P> |
<P> |
A <b>pcre[16]_extra</b> structure contains the following fields: | A <b>pcre[16|32]_extra</b> structure contains the following fields: |
<pre> |
<pre> |
<i>flags</i> Bits indicating which fields are set |
<i>flags</i> Bits indicating which fields are set |
<i>study_data</i> Opaque data from <b>pcre[16]_study()</b> | <i>study_data</i> Opaque data from <b>pcre[16|32]_study()</b> |
<i>match_limit</i> Limit on internal resource use |
<i>match_limit</i> Limit on internal resource use |
<i>match_limit_recursion</i> Limit on internal recursion depth |
<i>match_limit_recursion</i> Limit on internal recursion depth |
<i>callout_data</i> Opaque data passed back to callouts |
<i>callout_data</i> Opaque data passed back to callouts |