Skip to content

Commit 07e22d1

Browse files
committed
Data.String: doc: add strchars()
1 parent 3628952 commit 07e22d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/vital/Data/String.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ dstring({expr}) *Vital.Data.String.dstring()*
139139
lines({str}) *Vital.Data.String.lines()*
140140
Splits into list of strings of each lines of {str}.
141141

142+
strchars({str}) *Vital.Data.String.strchars()*
143+
Returns the number of characters in String {str}.
144+
This is a polyfill of |strchars()| when it was not provided.
145+
142146
contains_multibyte({str}) *Vital.Data.String.contains_multibyte()*
143147
Return Number 1 if String {str} contains a multi-byte character,
144148
otherwise zero.

0 commit comments

Comments
 (0)