Hirohito Higashi wrote:
 
> Hi Bram and list,
> 
> I want to get the number of characters.
> strchars() is looks best, but composing characters are counted separately.
> So that I add "skip composing characters flag" to strchars().
> 
> strchars({expr} [, {skipcc}])                                   strchars()
>                 The result is a Number, which is the number of characters
>                 String {expr} occupies.
>                 When {skipcc} is omitted or zero, Composing characters are
>                 counted separately.
>                 When {skipcc} set to 1, Composing characters are skipped.
>                 Also see strlen(), strdisplaywidth() and strwidth().
> 
> Of course I know we can get the number of characters below.
> 
> :let len = strlen(substitute(str, ".", "x", "g"))
> 
> But it is not intuitive :-)
> 
> Can you include this patch?
> 
> PS
> This patch idea by Ken Takata. and many advice by Ken Takata.

Thanks.  I like it, I'll include the patch.

-- 
Fingers not found - Pound head on keyboard to continue.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui