blob: 1ca413472609d94d00e4d954892920d48b16d43a [file] [log] [blame]
Elliott Hughes2dbd7d22020-06-03 14:32:37 -07001.TH PCRE2_SET_CHARACTER_TABLES 3 "20 March 2020" "PCRE2 10.35"
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01002.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_character_tables(pcre2_compile_context *\fIccontext\fP,
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070011.B " const uint8_t *\fItables\fP);"
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010012.fi
13.
14.SH DESCRIPTION
15.rs
16.sp
17This function sets a pointer to custom character tables within a compile
Elliott Hughes2dbd7d22020-06-03 14:32:37 -070018context. The second argument must point to a set of PCRE2 character tables or
19be NULL to request the default tables. The result is always zero. Character
20tables can be created by calling \fBpcre2_maketables()\fP or by running the
21\fBpcre2_dftables\fP maintenance command in binary mode (see the
22.\" HREF
23\fBpcre2build\fP
24.\"
25documentation).
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010026.P
27There is a complete description of the PCRE2 native API in the
28.\" HREF
29\fBpcre2api\fP
30.\"
31page and a description of the POSIX API in the
32.\" HREF
33\fBpcre2posix\fP
34.\"
35page.