Difference between revisions of "String.len"

From OpenEUO
Jump to: navigation, search
 
Line 7: Line 7:
  
 
[[Table.maxn]]
 
[[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.

String.byte

String.char

Table.maxn

Lua Manual - The length operator #