summaryrefslogtreecommitdiff
path: root/doc/pcre2test.1
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-03-20 18:09:59 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2020-03-20 18:09:59 +0000
commit2ec85e0009fc1808ed79b4697e8502795b46564b (patch)
tree8b7b8eb19fe4feecbd1f0fb9fed718d5c523259d /doc/pcre2test.1
parent9273b7d54f872ede1a3c77d628495065a4bfa206 (diff)
downloadpcre2-2ec85e0009fc1808ed79b4697e8502795b46564b.tar.gz
Renamed dftables as pcre2_dftables and enable it to write the tables in binary.
Update documentation about character tables. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1237 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'doc/pcre2test.1')
-rw-r--r--doc/pcre2test.126
1 files changed, 17 insertions, 9 deletions
diff --git a/doc/pcre2test.1 b/doc/pcre2test.1
index 6cdb402..108ecfc 100644
--- a/doc/pcre2test.1
+++ b/doc/pcre2test.1
@@ -1,4 +1,4 @@
-.TH PCRE2TEST 1 "22 January 2020" "PCRE 10.35"
+.TH PCRE2TEST 1 "20 March 2020" "PCRE 10.35"
.SH NAME
pcre2test - a program for testing Perl-compatible regular expressions.
.SH SYNOPSIS
@@ -327,6 +327,12 @@ described in the section entitled "Saving and restoring compiled patterns"
below.
.\"
.sp
+ #loadtables <filename>
+.sp
+This command is used to load a set of binary character tables that can be
+accessed by the tables=3 qualifier. Such tables can be created by the
+\fBpcre2_dftables\fP program with the -b option.
+.sp
#newline_default [<newline-list>]
.sp
When PCRE2 is built, a default newline convention can be specified. This
@@ -638,7 +644,7 @@ heavily used in the test files.
pushcopy push a copy onto the stack
stackguard=<number> test the stackguard feature
subject_literal treat all subject lines as literal
- tables=[0|1|2] select internal tables
+ tables=[0|1|2|3] select internal tables
use_length do not zero-terminate the pattern
utf8_input treat input as UTF-8
.sp
@@ -988,18 +994,20 @@ be aborted.
.rs
.sp
The value specified for the \fBtables\fP modifier must be one of the digits 0,
-1, or 2. It causes a specific set of built-in character tables to be passed to
-\fBpcre2_compile()\fP. This is used in the PCRE2 tests to check behaviour with
-different character tables. The digit specifies the tables as follows:
+1, 2, or 3. It causes a specific set of built-in character tables to be passed
+to \fBpcre2_compile()\fP. This is used in the PCRE2 tests to check behaviour
+with different character tables. The digit specifies the tables as follows:
.sp
0 do not pass any special character tables
1 the default ASCII tables, as distributed in
pcre2_chartables.c.dist
2 a set of tables defining ISO 8859 characters
+ 3 a set of tables loaded by the #loadtables command
.sp
-In table 2, some characters whose codes are greater than 128 are identified as
-letters, digits, spaces, etc. Setting alternate character tables and a locale
-are mutually exclusive.
+In tables 2, some characters whose codes are greater than 128 are identified as
+letters, digits, spaces, etc. Tables 3 can be used only after a
+\fB#loadtables\fP command has loaded them from a binary file. Setting alternate
+character tables and a locale are mutually exclusive.
.
.
.SS "Setting certain match controls"
@@ -2088,6 +2096,6 @@ Cambridge, England.
.rs
.sp
.nf
-Last updated: 22 January 2020
+Last updated: 20 March 2020
Copyright (c) 1997-2020 University of Cambridge.
.fi