Mercurial > vim
diff src/macros.h @ 492:81c06952fb1d
updated for version 7.0135
author | vimboss |
---|---|
date | Tue, 23 Aug 2005 21:00:13 +0000 |
parents | a5fcf36ef512 |
children | e402b0af6083 |
line wrap: on
line diff
--- a/src/macros.h +++ b/src/macros.h @@ -81,13 +81,13 @@ /* * MB_ISLOWER() and MB_ISUPPER() are to be used on multi-byte characters. But - * don't use them for negative values. + * don't use them for negative values! */ #ifdef FEAT_MBYTE -# define MB_ISLOWER(c) (enc_utf8 && (c) >= 0x80 ? utf_islower(c) : (has_mbyte && c > 255 ? FALSE : islower(c))) -# define MB_ISUPPER(c) (enc_utf8 && (c) >= 0x80 ? utf_isupper(c) : (has_mbyte && c > 255 ? FALSE : isupper(c))) -# define MB_TOLOWER(c) (enc_utf8 && (c) >= 0x80 ? utf_tolower(c) : (has_mbyte && c > 255 ? c : TOLOWER_LOC(c))) -# define MB_TOUPPER(c) (enc_utf8 && (c) >= 0x80 ? utf_toupper(c) : (has_mbyte && c > 255 ? c : TOUPPER_LOC(c))) +# define MB_ISLOWER(c) vim_islower(c) +# define MB_ISUPPER(c) vim_isupper(c) +# define MB_TOLOWER(c) vim_tolower(c) +# define MB_TOUPPER(c) vim_toupper(c) #else # define MB_ISLOWER(c) islower(c) # define MB_ISUPPER(c) isupper(c)