From 4cd7b957f382c1d961641629a84ada8384953598 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 30 Jun 2006 09:41:34 +0000 Subject: 22529: multibyte conversion in math expressions --- Doc/Zsh/arith.yo | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Doc/Zsh/arith.yo') diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo index 33ca09c20..f13cad987 100644 --- a/Doc/Zsh/arith.yo +++ b/Doc/Zsh/arith.yo @@ -129,13 +129,14 @@ the tt(zmodload) builtin to provide standard floating point mathematical functions. An expression of the form `tt(##)var(x)' where var(x) is any character -sequence such as `tt(a)', `tt(^A)', or `tt(\M-\C-x)' gives the ASCII -value of this character and an expression of the form `tt(#)var(foo)' -gives the ASCII value of the first character of the value of the -parameter var(foo). Note that this is different from the expression -`tt($#)var(foo)', a standard parameter substitution which gives the -length of the parameter var(foo). `tt(#\)' is accepted instead of -`tt(##)', but its use is deprecated. +sequence such as `tt(a)', `tt(^A)', or `tt(\M-\C-x)' gives the value of +this character and an expression of the form `tt(#)var(foo)' gives the +value of the first character of the contents of the parameter var(foo). +Character values are according to the character set used in the current +locale; for multibyte character handling the option tt(MULTIBYTE) must be +set. Note that this form is different from `tt($#)var(foo)', a standard +parameter substitution which gives the length of the parameter var(foo). +`tt(#\)' is accepted instead of `tt(##)', but its use is deprecated. Named parameters and subscripted arrays can be referenced by name within an arithmetic expression without using the parameter expansion syntax. For -- cgit 1.4.1