WoW:API strlower: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".)
m (Move page script moved page API strlower to API strlower without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{:Lua/Libshortcut|strlower|string.lower}}
{{luaapi}}
  string.lower(s)
Gets a string with all lower case letters instead of upper case.
  lowerS = string.lower(s)
lowerS = strlower(s)


Make uppercase characters lower case.
== 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!")
  > = string.lower("Hello, Lua user!")
  hello, lua user!
  hello, lua user!
{{LUA}}

Latest revision as of 04:47, 15 August 2023

WoW Lua

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

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

Arguments[edit]

s
String - The string to convert

Returns[edit]

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

Example[edit]

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