lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 13 August 2012 10:40, marbux <marbux@gmail.com> wrote:
string.len (s)

Receives a string and returns its length. The empty string "" has
length 0. Embedded zeros are counted, so "a\000bc\000" has length 5.

Shouldn't that be:

Embedded zeros are *not* counted  ...

?

Best regards,

Paul

Nope.

"a\000bc\000" is the same as "a\0bc\0" (numerical escape sequences are up to 3 characters long)