summaryrefslogtreecommitdiff
path: root/src/macros.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2005-08-23 21:00:13 +0000
committerBram Moolenaar <Bram@vim.org>2005-08-23 21:00:13 +0000
commit7862282f2edc76533c5c0dcf49b57bf747a30ebc (patch)
tree8feddb7d932bf1d473752be7460746d706935df1 /src/macros.h
parenta6c840d7d4d51af2a15f64db5e5b908457b572cf (diff)
downloadvim-git-7862282f2edc76533c5c0dcf49b57bf747a30ebc.tar.gz
updated for version 7.0135
Diffstat (limited to 'src/macros.h')
-rw-r--r--src/macros.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/macros.h b/src/macros.h
index d18813ce2..9310bdd20 100644
--- 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)