Difference between revisions of "String.len"
From OpenEUO
(Created page with " 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.") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
string.len (s) | 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. | Receives a string and returns its length. The empty string "" has length 0. Embedded zeros are counted, so "a\000bc\000" has length 5. | ||
+ | |||
+ | [[String.byte]] | ||
+ | |||
+ | [[String.char]] | ||
+ | |||
+ | [[Table.maxn]] | ||
+ | |||
+ | [http://www.lua.org/manual/5.1/manual.html#2.5.5 Lua Manual - The length operator #] |
Latest revision as of 12:50, 9 October 2010
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.