diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-05 00:47:23 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-01-05 00:47:23 +0000 |
commit | a0dbb04553005cdbafdeb7435a79ae500b5aa8ff (patch) | |
tree | c3c2af7757f55ba66089c19094e138ecb04cb469 /utf8.h | |
parent | 7a800fca3140c85b8a41515633e9bb98c38e5603 (diff) | |
download | perl-a0dbb04553005cdbafdeb7435a79ae500b5aa8ff.tar.gz |
Unify UTF-8 malformedness handling.
p4raw-id: //depot/perl@8323
Diffstat (limited to 'utf8.h')
-rw-r--r-- | utf8.h | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -33,16 +33,18 @@ END_EXTERN_C #define IN_BYTE (PL_curcop->op_private & HINT_BYTE) #define DO_UTF8(sv) (SvUTF8(sv) && !IN_BYTE) -#define UTF8_ALLOW_CONTINUATION 0x0001 -#define UTF8_ALLOW_NON_CONTINUATION 0x0002 -#define UTF8_ALLOW_FE_FF 0x0004 -#define UTF8_ALLOW_SHORT 0x0008 -#define UTF8_ALLOW_SURROGATE 0x0010 -#define UTF8_ALLOW_BOM 0x0020 -#define UTF8_ALLOW_FFFF 0x0040 -#define UTF8_ALLOW_LONG 0x0080 -#define UTF8_ALLOW_ANYUV (UTF8_ALLOW_FE_FF|UTF8_ALLOW_FFFF \ - |UTF8_ALLOW_BOM|UTF8_ALLOW_SURROGATE) +#define UTF8_ALLOW_EMPTY 0x0001 +#define UTF8_ALLOW_CONTINUATION 0x0002 +#define UTF8_ALLOW_NON_CONTINUATION 0x0004 +#define UTF8_ALLOW_FE_FF 0x0008 +#define UTF8_ALLOW_SHORT 0x0010 +#define UTF8_ALLOW_SURROGATE 0x0020 +#define UTF8_ALLOW_BOM 0x0040 +#define UTF8_ALLOW_FFFF 0x0080 +#define UTF8_ALLOW_LONG 0x0100 +#define UTF8_ALLOW_ANYUV (UTF8_ALLOW_EMPTY|UTF8_ALLOW_FE_FF|\ + UTF8_ALLOW_SURROGATE|UTF8_ALLOW_BOM|\ + UTF8_ALLOW_FFFF|UTF8_ALLOW_LONG) #define UTF8_ALLOW_ANY 0x00ff #define UTF8_CHECK_ONLY 0x0100 |