summaryrefslogtreecommitdiff
path: root/utfebcdic.h
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-09-16 10:58:26 -0600
committerKarl Williamson <public@khwilliamson.com>2012-09-16 22:31:23 -0600
commit7b4252f49b5cd844c918f7f2cb81e064d4377ba9 (patch)
treefa840dbd1c86d9564ff29c0677a39804ad1e7c50 /utfebcdic.h
parent0cd39adf63bbc345adf2626353dca017ce526563 (diff)
downloadperl-7b4252f49b5cd844c918f7f2cb81e064d4377ba9.tar.gz
utf8.h: Add macro to test if UTF8 code point isn't Latin1
Diffstat (limited to 'utfebcdic.h')
-rw-r--r--utfebcdic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/utfebcdic.h b/utfebcdic.h
index 3eba83da99..16621036e7 100644
--- a/utfebcdic.h
+++ b/utfebcdic.h
@@ -570,6 +570,7 @@ END_EXTERN_C
#define UTF8_IS_CONTINUATION(c) ((NATIVE_TO_UTF(c) & 0xE0) == 0xA0)
#define UTF8_IS_CONTINUED(c) (NATIVE_TO_UTF(c) >= 0xA0)
#define UTF8_IS_DOWNGRADEABLE_START(c) (NATIVE_TO_UTF(c) >= 0xC5 && NATIVE_TO_UTF(c) <= 0xC7)
+#define UTF8_IS_ABOVE_LATIN1(c) (NATIVE_TO_I8(c) >= 0xC8)
#define UTF_START_MARK(len) (((len) > 7) ? 0xFF : ((U8)(0xFE << (7-(len)))))
#define UTF_START_MASK(len) (((len) >= 6) ? 0x01 : (0x1F >> ((len)-2)))