WoW:API strlower: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated to match the API boilerplate.)
({{luaapi}})
Line 1: Line 1:
{{:Lua/Libshortcut|strlower|string.lower}}
{{luaapi}}
 
Gets a string with all lower case letters instead of upper case.
Gets a string with all lower case letters instead of upper case.
  lowerS = string.lower(s)
  lowerS = string.lower(s)
 
lowerS = strlower(s)


== Arguments ==
== Arguments ==
:; s : String - The string to convert
; s : String - The string to convert
 


== Returns ==
== Returns ==
:; lowerS : String - The same string as passed in, but with lower case characters instead of upper case ones.
; lowerS : String - The same string as passed in, but with lower case characters instead of upper case ones.
 


== Example ==
== Example ==
  > = string.lower("Hello, Lua user!")
  > = string.lower("Hello, Lua user!")
  hello, lua user!
  hello, lua user!
{{LUA}}

Revision as of 22:41, 25 March 2010

WoW Lua

Gets a string with all lower case letters instead of upper case.

lowerS = string.lower(s)
lowerS = strlower(s)

Arguments

s
String - The string to convert

Returns

lowerS
String - The same string as passed in, but with lower case characters instead of upper case ones.

Example

> = string.lower("Hello, Lua user!")
hello, lua user!