mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0135
This commit is contained in:
10
src/macros.h
10
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)
|
||||
|
Reference in New Issue
Block a user