count_chars
Summary
Returns the length of the input string.Usage
input|count_chars()
Returns
An integer revealing the string length.Description
This operator counts and returns the number of characters (all of them, whitespaces included) that make up the input string.
Examples
Example 1
{'Testing 1 2 3'|count_chars()}
The following output will be returned: "13".
Example 2
{'Testing'|count_chars()}
The following output will be returned: "7".
Balazs Halasy (05/02/2004 10:53 am)
Balazs Halasy (04/05/2005 2:38 pm)
Comments
Passing the string as an argument
Wednesday 12 October 2005 2:40:57 pm
Tristan Rivoallan
I doesn't seem like this behavior is the same among all operators.