blob: d5637aff19c493906ecf7952fa9fedb548ee954f [file] [log] [blame]
Elliott Hughes9bc971b2018-07-27 13:23:14 -07001.TH PCRE2_SET_GLOB_ESCAPE 3 "11 July 2017" "PCRE2 10.30"
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_glob_escape(pcre2_convert_context *\fIcvcontext\fP,
11.B " uint32_t \fIescape_char\fP);"
12.fi
13.
14.SH DESCRIPTION
15.rs
16.sp
17This function is part of an experimental set of pattern conversion functions.
18It sets the escape character that is used when converting globs. The second
19argument must either be zero (meaning there is no escape character) or a
20punctuation character whose code point is less than 256. The default is grave
21accent if running under Windows, otherwise backslash. The result of the
22function is zero for success or PCRE2_ERROR_BADDATA if the second argument is
23invalid.
24.P
25The pattern conversion functions are described in the
26.\" HREF
27\fBpcre2convert\fP
28.\"
29documentation.