pcre2_set_substitute_callout.3 824 B

12345678910111213141516171819202122232425262728293031
  1. .TH PCRE2_SET_SUBSTITUTE_CALLOUT 3 "12 November 2018" "PCRE2 10.33"
  2. .SH NAME
  3. PCRE2 - 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
  18. This function sets the substitute callout fields in a match context (the first
  19. argument). The second argument specifies a callout function, and the third
  20. argument is an opaque data item that is passed to it. The result of this
  21. function is always zero.
  22. .P
  23. There is a complete description of the PCRE2 native API in the
  24. .\" HREF
  25. \fBpcre2api\fP
  26. .\"
  27. page and a description of the POSIX API in the
  28. .\" HREF
  29. \fBpcre2posix\fP
  30. .\"
  31. page.