Mercurial > vim
diff runtime/doc/eval.txt @ 502:52e76e2b5b65 v7.0140
updated for version 7.0140
author | vimboss |
---|---|
date | Thu, 01 Sep 2005 20:46:49 +0000 |
parents | 06364aa0d597 |
children | 35cde31bdcbd |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0aa. Last change: 2005 Aug 23 +*eval.txt* For Vim version 7.0aa. Last change: 2005 Aug 31 VIM REFERENCE MANUAL by Bram Moolenaar @@ -4081,12 +4081,12 @@ string({expr}) Return {expr} converted t *strlen()* strlen({expr}) The result is a Number, which is the length of the String - {expr} in bytes. If you want to count the number of - multi-byte characters use something like this: > + {expr} in bytes. + If you want to count the number of multi-byte characters (not + counting composing characters) use something like this: > :let len = strlen(substitute(str, ".", "x", "g")) - -< Composing characters are not counted. +< If the argument is a Number it is first converted to a String. For other types an error is given. Also see |len()|.