diff options
author | aph <a.hewson@gmail.com> | 2014-04-01 20:03:46 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-04 21:44:58 -0300 |
commit | 4c4880b69f2dc98a8f899fe394ea15a32bcf70f7 (patch) | |
tree | bbceab6f73ddf6802d740f5d3d6fabf384264739 /src/macros.h | |
parent | 535c450c72bb643aaff5e024d64980e124d6ddec (diff) | |
download | rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.tar.gz rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.tar.bz2 rneovim-4c4880b69f2dc98a8f899fe394ea15a32bcf70f7.zip |
remove MB_{IS,TO}{UPPER,LOWER}
Diffstat (limited to 'src/macros.h')
-rw-r--r-- | src/macros.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/macros.h b/src/macros.h index 8199dd41a3..fbd3440c6d 100644 --- a/src/macros.h +++ b/src/macros.h @@ -51,7 +51,7 @@ * characters, first use islower() or isupper() then. * Careful: Only call TOUPPER_LOC() and TOLOWER_LOC() with a character in the * range 0 - 255. toupper()/tolower() on some systems can't handle others. - * Note: It is often better to use MB_TOLOWER() and MB_TOUPPER(), because many + * Note: It is often better to use vim_tolower() and vim_toupper(), because many * toupper() and tolower() implementations only work for ASCII. */ # ifdef BROKEN_TOUPPER @@ -66,15 +66,6 @@ # define TOUPPER_ASC(c) (((c) < 'a' || (c) > 'z') ? (c) : (c) - ('a' - 'A')) # define TOLOWER_ASC(c) (((c) < 'A' || (c) > 'Z') ? (c) : (c) + ('a' - 'A')) -/* - * MB_ISLOWER() and MB_ISUPPER() are to be used on multi-byte characters. But - * don't use them for negative values! - */ -# 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) - /* Use our own isdigit() replacement, because on MS-Windows isdigit() returns * non-zero for superscript 1. Also avoids that isdigit() crashes for numbers * below 0 and above 255. */ |