On Fri, 22 May 2020, Artur Tarassow wrote:
Hi,
I just found that the nelem() function also accepts a string which is not
documented. Returns the same value as the strlen() function.
It should be documented. But... it doesn't always give the same
answer as strlen. Consider:
<hansl>
string s = "gemütlichkeit" # UTF-8
eval strlen(s)
eval nelem(s)
</hansl>
The evals give 13 (characters) and 14 (bytes) respectively.
Allin