gt; compatibility, you can define a wrapper function: >
>
> if has("patch-7.4.755")
> function s:strchars(str, skipcc)
> return strchars(a:str, a:skipcc)
> endfunction
>
Hirohito Higashi wrote:
> 2015-6-25(Thu) 23:09:44 UTC+9 Bram Moolenaar:
> > Patch 7.4.755
> > Problem:It is not easy to count the number of characters.
> > Solution: Add the skipcc argument to strchars(). (Hirohito Higashi, Ken
> > Takata)
> >
number of characters
in String {expr}.
When {skipcc} is omitted or zero, composing characters are
counted separately.
When {skipcc} set to 1, Composing characters are ignored.
Also see |strlen()|, |strdisplaywidth()
Hi Bram,
2015-6-25(Thu) 23:09:44 UTC+9 Bram Moolenaar:
> Patch 7.4.755
> Problem:It is not easy to count the number of characters.
> Solution: Add the skipcc argument to strchars(). (Hirohito Higashi, Ken
> Takata)
> Files: runtime/doc/eval.txt, src/eval
Patch 7.4.755
Problem:It is not easy to count the number of characters.
Solution: Add the skipcc argument to strchars(). (Hirohito Higashi, Ken
Takata)
Files: runtime/doc/eval.txt, src/eval.c, src/testdir/test_utf8.in,
src/testdir/test_utf8.ok
*** ../vim