diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-31 22:56:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-31 22:56:16 +0000 |
commit | df84a23b01be600297e1e5268d9351b807f107f6 (patch) | |
tree | d450782e93c0b5c9a1c33a8c62ac3b231835ff6e /utf8.h | |
parent | 7dca457a331b97453e1d930c080996ddea87ffa7 (diff) | |
download | perl-df84a23b01be600297e1e5268d9351b807f107f6.tar.gz |
Macrofy a magic UTF-8 test.
p4raw-id: //depot/perl@8647
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -68,6 +68,7 @@ END_EXTERN_C #define UTF8_IS_START(c) (((U8)c) >= 0xc0 && (((U8)c) <= 0xfd)) #define UTF8_IS_CONTINUATION(c) (((U8)c) >= 0x80 && (((U8)c) <= 0xbf)) #define UTF8_IS_CONTINUED(c) (((U8)c) & 0x80) +#define UTF8_IS_DOWNGRADEABLE_START(c) (((U8)c & 0xfc) != 0xc0) #define UTF8_CONTINUATION_MASK ((U8)0x3f) #define UTF8_ACCUMULATION_SHIFT 6 |