Counts bytes (multibyte-safe) in a string.
<v:count.bytes>{myString}</v:count.bytes> (output for example `42`
{myString -> v:count.bytes()} when used inline
<v:count.bytes string="{myString}" />
{v:count.bytes(string: myString)}
/
<v:count.bytes string="NULL" encoding="'UTF-8'"> <!-- tag content - may be ignored! --> </v:count.bytes>
{v:count.bytes(string: 'NULL', encoding: ''UTF-8'')}
Argument | Description | Type |
---|---|---|
encoding |
Character set encoding of string, e.g. UTF-8 or ISO-8859-1 |
string |
string |
String to count, if not provided as tag content |
string |
Required attribute |