Am 22.05.20 um 22:07 schrieb Allin Cottrell:
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.
Thank you for clarification, Allin.
Artur