From 6157c14d0602c698aa9ebfac9a2135ef095a76b4 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 28 Jun 2006 13:12:55 +0000 Subject: 22525: lengths and cases of multibyte strings in parameters and history --- Src/zsh.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Src/zsh.h') 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) -- cgit 1.4.1