From 2ec85e0009fc1808ed79b4697e8502795b46564b Mon Sep 17 00:00:00 2001 From: ph10 Date: Fri, 20 Mar 2020 18:09:59 +0000 Subject: 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 --- doc/html/pcre2test.html | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'doc/html/pcre2test.html') diff --git a/doc/html/pcre2test.html b/doc/html/pcre2test.html index bfd22e9..63fa461 100644 --- a/doc/html/pcre2test.html +++ b/doc/html/pcre2test.html @@ -375,6 +375,12 @@ output. This command is used to load a set of precompiled patterns from a file, as described in the section entitled "Saving and restoring compiled patterns" below. +
+  #loadtables <filename>
+
+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 +pcre2_dftables program with the -b option.
   #newline_default [<newline-list>]
 
@@ -679,7 +685,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 @@ -1027,18 +1033,20 @@ Using alternative character tables

The value specified for the tables 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 -pcre2_compile(). 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 pcre2_compile(). This is used in the PCRE2 tests to check behaviour +with different character tables. The digit specifies the tables as follows:

   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 
 
-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 +#loadtables command has loaded them from a binary file. Setting alternate +character tables and a locale are mutually exclusive.


Setting certain match controls @@ -2105,7 +2113,7 @@ Cambridge, England.


REVISION

-Last updated: 22 January 2020 +Last updated: 20 March 2020
Copyright © 1997-2020 University of Cambridge.
-- cgit v1.2.1