|
| 1 | +<html> |
| 2 | +<head> |
| 3 | +<title>pcre2_next_match specification</title> |
| 4 | +</head> |
| 5 | +<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB"> |
| 6 | +<h1>pcre2_next_match man page</h1> |
| 7 | +<p> |
| 8 | +Return to the <a href="index.html">PCRE2 index page</a>. |
| 9 | +</p> |
| 10 | +<p> |
| 11 | +This page is part of the PCRE2 HTML documentation. It was generated |
| 12 | +automatically from the original man page. If there is any nonsense in it, |
| 13 | +please consult the man page, in case the conversion went wrong. |
| 14 | +<br> |
| 15 | +<h2> |
| 16 | +SYNOPSIS |
| 17 | +</h2> |
| 18 | +<p> |
| 19 | +<b>#include <pcre2.h></b> |
| 20 | +</p> |
| 21 | +<p> |
| 22 | +<b>int pcre2_next_match(pcre2_match_data *<i>match_data</i>,</b> |
| 23 | +<b> PCRE2_SIZE *<i>pstart_offset</i>, uint32_t *<i>poptions</i>);</b> |
| 24 | +</p> |
| 25 | +<h2> |
| 26 | +DESCRIPTION |
| 27 | +</h2> |
| 28 | +<p> |
| 29 | +This function can be called after one of the match functions |
| 30 | +(<b>pcre2_match()</b>, <b>pcre2_dfa_match()</b>, or <b>pcre2_jit_match()</b>), and |
| 31 | +must be provided with the same <i>match_data</i> parameter. It outputs the |
| 32 | +appropriate parameters for searching for the next match in the same subject |
| 33 | +string, and is suitable for applications providing "global" matching behaviour |
| 34 | +(for example, replacing all matches in the subject, or splitting the subject on |
| 35 | +all matches, or simply counting the number of matches). |
| 36 | +</p> |
| 37 | +<p> |
| 38 | +It returns 0 ("false") if there is no need to make any further match attempts, |
| 39 | +or 1 ("true") if another match should be attempted. |
| 40 | +</p> |
| 41 | +<p> |
| 42 | +The *<i>pstart_offset</i> and *<i>poptions</i> are set if the function returns 1. |
| 43 | +The *<i>pstart_offset</i> should be passed to the next match attempt directly, |
| 44 | +and the *<i>poptions</i> should be passed to the next match attempt by combining |
| 45 | +with the application's match options using OR. |
| 46 | +</p> |
| 47 | +<p> |
| 48 | +There is a complete description of the PCRE2 native API in the |
| 49 | +<a href="pcre2api.html"><b>pcre2api</b></a> |
| 50 | +page and a description of the POSIX API in the |
| 51 | +<a href="pcre2posix.html"><b>pcre2posix</b></a> |
| 52 | +page. |
| 53 | +<p> |
| 54 | +Return to the <a href="index.html">PCRE2 index page</a>. |
| 55 | +</p> |
0 commit comments