Availability:built-in
string_length(+String,
-Length)Unify Length with the number of characters in String.
This predicate is functionally equivalent to atom_length/2
and also accepts
anytext as its first argument. Numeric types are formatted into
strings before the length of their string representation is determined.174This
behavior should be considered deprecated See also write_length/3.