diff options
author | Karl Williamson <khw@cpan.org> | 2019-10-02 17:13:31 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-10-06 11:07:09 -0600 |
commit | f4225fa0e24724a97c2ff1d4e608353ca1537506 (patch) | |
tree | 155bfb82927141727d133caa5dd1a43fc23a867f /utfebcdic.h | |
parent | 38f458ffd56c0eb9f5df18cb6693ca326a4b1374 (diff) | |
download | perl-f4225fa0e24724a97c2ff1d4e608353ca1537506.tar.gz |
Make defn of UTF8_IS_CONTINUATION common
This can be derived from other values, removing an EBCDIC dependency
Diffstat (limited to 'utfebcdic.h')
-rw-r--r-- | utfebcdic.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/utfebcdic.h b/utfebcdic.h index 7200599532..ad4df4544f 100644 --- a/utfebcdic.h +++ b/utfebcdic.h @@ -220,14 +220,6 @@ explicitly forbidden, and the shortest possible encoding should always be used #define UTF8_IS_START(c) _generic_isCC(c, _CC_UTF8_IS_START) -#define UTF8_IS_CONTINUATION(c) _generic_isCC(c, _CC_UTF8_IS_CONTINUATION) - -/* The above instead could be written as this: -#define UTF8_IS_CONTINUATION(c) \ - (((NATIVE_UTF8_TO_I8(c) & UTF_IS_CONTINUATION_MASK) \ - == UTF_CONTINUATION_MARK) - */ - /* Equivalent to ! UVCHR_IS_INVARIANT(c) */ #define UTF8_IS_CONTINUED(c) cBOOL(FITS_IN_8_BITS(c) \ && ! (PL_charclass[(U8) (c)] & (_CC_mask(_CC_ASCII) | _CC_mask(_CC_CNTRL)))) |