From 1df634280fbf565fc9e9ada123c12a82404aa817 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 2 Oct 2019 17:56:01 -0600 Subject: Make defn of UTF_IS_ABOVE_LATIN1 common This can be derived from other values, removing an EBCDIC dependency --- utfebcdic.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'utfebcdic.h') diff --git a/utfebcdic.h b/utfebcdic.h index 8fe4bdc143..751fa0a9bd 100644 --- a/utfebcdic.h +++ b/utfebcdic.h @@ -224,12 +224,6 @@ explicitly forbidden, and the shortest possible encoding should always be used #define UTF8_IS_DOWNGRADEABLE_START(c) _generic_isCC(c, \ _CC_UTF8_IS_DOWNGRADEABLE_START) -/* Equivalent to (UTF8_IS_START(c) && ! UTF8_IS_DOWNGRADEABLE_START(c)) - * Makes sure that the START bit is set and the DOWNGRADEABLE bit isn't */ -#define UTF8_IS_ABOVE_LATIN1(c) cBOOL(FITS_IN_8_BITS(c) \ - && ((PL_charclass[(U8) (c)] & ( _CC_mask(_CC_UTF8_IS_START) \ - |_CC_mask(_CC_UTF8_IS_DOWNGRADEABLE_START))) \ - == _CC_mask(_CC_UTF8_IS_START))) #define isUTF8_POSSIBLY_PROBLEMATIC(c) \ _generic_isCC(c, _CC_UTF8_START_BYTE_IS_FOR_AT_LEAST_SURROGATE) -- cgit v1.2.1