<strlen $str [$mode]>
strlen returns the (integer) character length of each string
$mode argument is a
compare mode to use; the default is the current apicp
$mode values are used in the same
$str values. Currently the only pertinent
$mode flag is "iso-8859-1", which determines whether to
interpret text as ISO-8859-1 or UTF-8. This can alter how many
characters long the string appears to be, as UTF-8 characters are
variable-byte-sized, whereas ISO-8859-1 characters are always
$mode argument was added in version 6.
strlen returns the character (not necessarily byte)
length of each string value of
$str, according to
The return value in
$ret would be 3.
strlen function was added Feb. 5 1997.
The length returned is the number of characters (not bytes) of
the string value of the argument(s), i.e. values are cast to
varchar first, and the length stops with the first nul (U+0000)
character. For the full size of
varbyte values (that may
contain nuls), use the
The number of characters returned may vary with
i.e. whether "iso-8859-1" is set or not.
Copyright © Thunderstone Software Last updated: Mon Feb 18 10:28:15 EST 2013