summaryrefslogtreecommitdiff
path: root/pcre_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'pcre_internal.h')
-rw-r--r--pcre_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/pcre_internal.h b/pcre_internal.h
index 9a20e73..fa0fb8b 100644
--- a/pcre_internal.h
+++ b/pcre_internal.h
@@ -532,6 +532,7 @@ UTF support is omitted, we don't even define them. */
#ifndef SUPPORT_UTF
+/* #define MAX_VALUE_FOR_SINGLE_CHAR */
/* #define HAS_EXTRALEN(c) */
/* #define GET_EXTRALEN(c) */
/* #define NOT_FIRSTCHAR(c) */
@@ -554,6 +555,10 @@ from the tables whose names start with PRIV(utf8_table). They were rewritten by
a user so as not to use loops, because in some environments this gives a
significant performance advantage, and it seems never to do any harm. */
+/* Tells the biggest code point which can be encoded as a single character. */
+
+#define MAX_VALUE_FOR_SINGLE_CHAR 127
+
/* Tests whether the code point needs extra characters to decode. */
#define HAS_EXTRALEN(c) ((c) >= 0xc0)
@@ -721,6 +726,10 @@ because almost all calls are already within a block of UTF-8 only code. */
#ifdef COMPILE_PCRE16
+/* Tells the biggest code point which can be encoded as a single character. */
+
+#define MAX_VALUE_FOR_SINGLE_CHAR 65535
+
/* Tests whether the code point needs extra characters to decode. */
#define HAS_EXTRALEN(c) (((c) & 0xfc00) == 0xd800)