version 1.1.1.1, 2012/02/21 23:05:52
|
version 1.1.1.4, 2014/06/15 19:46:05
|
Line 20 SYNOPSIS
|
Line 20 SYNOPSIS
|
</P> |
</P> |
<P> |
<P> |
<b>int pcre_exec(const pcre *<i>code</i>, const pcre_extra *<i>extra</i>,</b> |
<b>int pcre_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> |
| <br> |
| <br> |
| <b>int pcre16_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> int <i>options</i>, int *<i>ovector</i>, int <i>ovecsize</i>);</b> |
| <br> |
| <br> |
| <b>int pcre32_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> |
</P> |
</P> |
<br><b> |
<br><b> |
DESCRIPTION |
DESCRIPTION |
Line 32 string, using a matching algorithm that is similar to
|
Line 42 string, using a matching algorithm that is similar to
|
offsets to captured substrings. Its arguments are: |
offsets to captured substrings. Its arguments 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_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 (a multiple of 3) |
<i>ovecsize</i> Number of elements in the vector (a multiple of 3) |
</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 58 The options are:
|
Line 69 The options are:
|
PCRE_NOTEMPTY_ATSTART An empty string at the start of the subject |
PCRE_NOTEMPTY_ATSTART An empty string at the start of the subject |
is not a valid match |
is not a valid match |
PCRE_NO_START_OPTIMIZE Do not do "start-match" optimizations |
PCRE_NO_START_OPTIMIZE Do not do "start-match" optimizations |
|
PCRE_NO_UTF16_CHECK Do not check the subject for UTF-16 |
|
validity (only relevant if PCRE_UTF16 |
|
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 71 For details of partial matching, see the
|
Line 88 For details of partial matching, see the
|
page. A <b>pcre_extra</b> structure contains the following fields: |
page. A <b>pcre_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_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 |