summaryrefslogtreecommitdiff
path: root/ext/pcre/pcre2lib/pcre2_chartables.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-02-14 13:44:38 +0100
committerAnatol Belski <ab@php.net>2018-02-14 13:44:38 +0100
commit703e0370905bc432aa26d71803b3081851e99230 (patch)
tree028999b90d090d7979b82e04e0c5952421b2af0d /ext/pcre/pcre2lib/pcre2_chartables.c
parent1cae6cf47b2dd2b41179b3c194dd353bb59792e6 (diff)
downloadphp-git-703e0370905bc432aa26d71803b3081851e99230.tar.gz
Upgrade bundled PCRE2 to 10.31
Diffstat (limited to 'ext/pcre/pcre2lib/pcre2_chartables.c')
-rw-r--r--ext/pcre/pcre2lib/pcre2_chartables.c37
1 files changed, 16 insertions, 21 deletions
diff --git a/ext/pcre/pcre2lib/pcre2_chartables.c b/ext/pcre/pcre2lib/pcre2_chartables.c
index 203cb1a4ab..6769280f5e 100644
--- a/ext/pcre/pcre2lib/pcre2_chartables.c
+++ b/ext/pcre/pcre2lib/pcre2_chartables.c
@@ -2,23 +2,17 @@
* Perl-Compatible Regular Expressions *
*************************************************/
-/* This file contains character tables that are used when no external tables
-are passed to PCRE2 by the application that calls it. The tables are used only
-for characters whose code values are less than 256.
-
-This is a default version of the tables that assumes ASCII encoding. A program
-called dftables (which is distributed with PCRE2) can be used to build
-alternative versions of this file. This is necessary if you are running in an
-EBCDIC environment, or if you want to default to a different encoding, for
-example ISO-8859-1. When dftables is run, it creates these tables in the
-current locale. If PCRE2 is configured with --enable-rebuild-chartables, this
-happens automatically.
-
-The following #includes are present because without them gcc 4.x may remove the
-array definition from the final binary if PCRE2 is built into a static library
-and dead code stripping is activated. This leads to link errors. Pulling in the
-header ensures that the array gets flagged as "someone outside this compilation
-unit might reference this" and so it will always be supplied to the linker. */
+/* This file was automatically written by the dftables auxiliary
+program. It contains character tables that are used when no external
+tables are passed to PCRE2 by the application that calls it. The tables
+are used only for characters whose code values are less than 256. */
+
+/* The following #includes are present because without them gcc 4.x may remove
+the array definition from the final binary if PCRE2 is built into a static
+library and dead code stripping is activated. This leads to link errors.
+Pulling in the header ensures that the array gets flagged as "someone
+outside this compilation unit might reference this" and so it will always
+be supplied to the linker. */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -98,10 +92,11 @@ const uint8_t PRIV(default_tables)[] = {
240,241,242,243,244,245,246,247,
248,249,250,251,252,253,254,255,
-/* This table contains bit maps for various character classes. Each map is 32
-bytes long and the bits run from the least significant end of each byte. The
-classes that have their own maps are: space, xdigit, digit, upper, lower, word,
-graph, print, punct, and cntrl. Other classes are built from combinations. */
+/* This table contains bit maps for various character classes.
+Each map is 32 bytes long and the bits run from the least
+significant end of each byte. The classes that have their own
+maps are: space, xdigit, digit, upper, lower, word, graph
+print, punct, and cntrl. Other classes are built from combinations. */
0x00,0x3e,0x00,0x00,0x01,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,