WoW:API strlen: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".)
Line 1: Line 1:
{{:Lua/Libshortcut|strlen|string.len}}
  string.len(s)
  string.len(s)


Line 11: Line 12:




----
{{LUA}}
{{WoW API}}

Revision as of 12:16, 26 May 2006

Lua/Libshortcut

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


Template:LUA