about summary refs log tree commit diff
path: root/Src/Zle/zle.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-11-01 02:50:28 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-11-01 02:50:28 +0000
commit2c28e857f86e8220650a9a013ec5f3f08f52aca7 (patch)
tree7350c485c69b163fca130fe5bd3a9d167145e586 /Src/Zle/zle.h
parent53d663f543fba39d280895914774e5167d751cd8 (diff)
downloadzsh-2c28e857f86e8220650a9a013ec5f3f08f52aca7.tar.gz
zsh-2c28e857f86e8220650a9a013ec5f3f08f52aca7.tar.xz
zsh-2c28e857f86e8220650a9a013ec5f3f08f52aca7.zip
- Defined some new ZC_i<type> macros, such as ZC_ilower, ZC_inblank,
  ZC_iupper, etc.
- Fixed ZC_iblank to not return true when given a newline.
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r--Src/Zle/zle.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h
index 9a3828139..be4069285 100644
--- a/Src/Zle/zle.h
+++ b/Src/Zle/zle.h
@@ -70,13 +70,18 @@ typedef wint_t   ZLE_INT_T;
 #define ZMB_nicewidth(s)	mb_niceformat(s, NULL, NULL, 0)
 
 /* Functions that operate on ZLE_CHAR_T. */
-#define ZC_iblank iswspace
+#define ZC_ialpha iswalpha
+#define ZC_iblank wcsiblank
 #define ZC_icntrl iswcntrl
+#define ZC_idigit iswdigit
 #define ZC_iident wcsiident
+#define ZC_ilower iswlower
+#define ZC_inblank iswspace
+#define ZC_iupper iswupper
+#define ZC_iword wcsiword
 
 #define ZC_tolower towlower
 #define ZC_toupper towupper
-#define ZC_iword  wcsiword
 
 #define ZC_nicechar(c) wcs_nicechar(c, NULL, NULL)
 
@@ -129,13 +134,18 @@ static inline int ZS_strncmp(ZLE_STRING_T s1, ZLE_STRING_T s2, size_t l)
 #endif
 
 /* Functions that operate on ZLE_CHAR_T. */
+#define ZC_ialpha ialpha
 #define ZC_iblank iblank
 #define ZC_icntrl icntrl
+#define ZC_idigit idigit
 #define ZC_iident iident
+#define ZC_ilower ilower
+#define ZC_inblank inblank
+#define ZC_iupper iupper
+#define ZC_iword iword
 
 #define ZC_tolower tulower
 #define ZC_toupper tuupper
-#define ZC_iword   iword
 
 #define LASTFULLCHAR	lastchar