WoW:API strlen: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 9: Line 9:
  > = string.len("Lua\000user")  -- Lua strings are 8 bit pure so \000 does not terminate
  > = string.len("Lua\000user")  -- Lua strings are 8 bit pure so \000 does not terminate
  8
  8
[[Category:API Functions|strlen]]
[[Category:API String Functions|strlen]]

Revision as of 19:07, 27 August 2005

string.len(s)

Return the length of the string passed.

> = string.len("Lua")
3
> = string.len("")
0
> = string.len("Lua\000user")   -- Lua strings are 8 bit pure so \000 does not terminate
8