diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-06-28 13:12:55 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-06-28 13:12:55 +0000 |
commit | 6157c14d0602c698aa9ebfac9a2135ef095a76b4 (patch) | |
tree | cae7cb80281a1426c06734889fd8f0b83292c6ca /Src/zsh.h | |
parent | f95a6a913c885932827e9c0219221f7de7ccdd79 (diff) | |
download | zsh-6157c14d0602c698aa9ebfac9a2135ef095a76b4.tar.gz zsh-6157c14d0602c698aa9ebfac9a2135ef095a76b4.tar.xz zsh-6157c14d0602c698aa9ebfac9a2135ef095a76b4.zip |
22525: lengths and cases of multibyte strings in parameters and history
Diffstat (limited to 'Src/zsh.h')
-rw-r--r-- | Src/zsh.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Src/zsh.h b/Src/zsh.h index 31609d3c5..b0962574a 100644 --- a/Src/zsh.h +++ b/Src/zsh.h @@ -1882,6 +1882,17 @@ struct heap { #define ZSIG_ALIAS (1<<3) /* Trap is stored under an alias */ #define ZSIG_SHIFT 4 +/************************/ +/* Flags to casemodifiy */ +/************************/ + +enum { + CASMOD_NONE, /* dummy for tests */ + CASMOD_UPPER, + CASMOD_LOWER, + CASMOD_CAPS +}; + /**********************************/ /* Flags to third argument of zle */ /**********************************/ @@ -1927,7 +1938,7 @@ typedef char *(*ZleGetLineFn) _((int *, int *)); #ifdef MULTIBYTE_SUPPORT #define nicezputs(str, outs) (void)mb_niceformat((str), (outs), NULL, 0) #define MB_METACHARINIT() mb_metacharinit() -#define MB_METACHARLEN(str) mb_metacharlen(str) +#define MB_METACHARLEN(str) mb_metacharlenconv(str, NULL) #define MB_METASTRLEN(str) mb_metastrlen(str) #define MB_INCOMPLETE ((size_t)-2) |