diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-09-23 13:57:51 -0600 |
---|---|---|
committer | Steffen Mueller <smueller@cpan.org> | 2010-09-25 11:15:30 +0200 |
commit | 0bc70f7fb0209a2939be161ebaeacc4d09c4d7b9 (patch) | |
tree | 6cfa0ebcd90264ca3f13a8d91bc864c40d42edf6 /handy.h | |
parent | 56e4b61182d449fccacdf033cf641273deb4e78d (diff) | |
download | perl-0bc70f7fb0209a2939be161ebaeacc4d09c4d7b9.tar.gz |
handy.h: EBCDIC isBLANK() is wrong
It doesn't include NBSP
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -532,7 +532,6 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc ((c) == ' ' || (c) == '\t' || (c) == '\n' || (c) =='\r' || (c) == '\f') #define isSPACE_L1(c) (isSPACE(c) \ || (NATIVE_TO_UNI(c) == 0x85 || NATIVE_TO_UNI(c) == 0xA0)) -#define isBLANK(c) ((c) == ' ' || (c) == '\t') #define isDIGIT(c) ((c) >= '0' && (c) <= '9') #define isOCTAL(c) ((c) >= '0' && (c) <= '7') #define isASCII(c) (FITS_IN_8_BITS(c) ? NATIVE_TO_UNI((U8) c) <= 127 : 0) @@ -541,6 +540,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc # define isUPPER(c) isupper(c) # define isLOWER(c) islower(c) # define isALNUMC(c) isalnum(c) +# define isBLANK(c) ((c) == ' ' || (c) == '\t' || NATIVE_TO_UNI(c) == 0xA0) # define isCNTRL(c) iscntrl(c) # define isGRAPH(c) isgraph(c) # define isPRINT(c) isprint(c) @@ -553,6 +553,7 @@ patched there. The file as of this writing is cpan/Devel-PPPort/parts/inc/misc # define isUPPER(c) ((c) >= 'A' && (c) <= 'Z') # define isLOWER(c) ((c) >= 'a' && (c) <= 'z') # define isALNUMC(c) (isALPHA(c) || isDIGIT(c)) +# define isBLANK(c) ((c) == ' ' || (c) == '\t') # define isCNTRL(c) ((U8) (c) < ' ' || (c) == 127) # define isGRAPH(c) (isALNUM(c) || isPUNCT(c)) # define isPRINT(c) (((c) >= 32 && (c) < 127)) |