blob: cdd7ac6a7936159e764885c6f160d43a4d535fd7 [file] [log] [blame]
Elliott Hughes0c26e192019-08-07 12:24:46 -07001.TH PCRE2_SET_SUBSTITUTE_CALLOUT 3 "12 November 2018" "PCRE2 10.33"
2.SH NAME
3PCRE2 - Perl-compatible regular expressions (revised API)
4.SH SYNOPSIS
5.rs
6.sp
7.B #include <pcre2.h>
8.PP
9.nf
10.B int pcre2_set_substitute_callout(pcre2_match_context *\fImcontext\fP,
11.B " int (*\fIcallout_function\fP)(pcre2_substitute_callout_block *),"
12.B " void *\fIcallout_data\fP);"
13.fi
14.
15.SH DESCRIPTION
16.rs
17.sp
18This function sets the substitute callout fields in a match context (the first
19argument). The second argument specifies a callout function, and the third
20argument is an opaque data item that is passed to it. The result of this
21function is always zero.
22.P
23There is a complete description of the PCRE2 native API in the
24.\" HREF
25\fBpcre2api\fP
26.\"
27page and a description of the POSIX API in the
28.\" HREF
29\fBpcre2posix\fP
30.\"
31page.