utf8.h, utfebcdic.h: Add #define
authorKarl Williamson <public@khwilliamson.com>
Sun, 24 Mar 2013 19:14:34 +0000 (13:14 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:56:04 +0000 (09:56 -0600)
utf8.h
utfebcdic.h

diff --git a/utf8.h b/utf8.h
index 4037a6a..574fd7a 100644 (file)
--- a/utf8.h
+++ b/utf8.h
@@ -266,6 +266,8 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
 #error UTF8_MAXBYTES must be at least 12
 #endif
 
+#define MAX_UTF8_TWO_BYTE 0x7FF
+
 #define UTF8_MAXBYTES_CASE     UTF8_MAXBYTES
 
 #endif /* EBCDIC vs ASCII */
index 2967001..54a3d26 100644 (file)
@@ -750,6 +750,8 @@ END_EXTERN_C
  * character occupies 5 bytes, therefore this number is 15 */
 #define UTF8_MAXBYTES_CASE     15
 
+#define MAX_UTF8_TWO_BYTE 0x3FF
+
 /*
  * Local variables:
  * c-indentation-style: bsd