string.upper

From GMod Wiki

Jump to: navigation, search
Function
Syntax string.upper( String string )
Where is this used?
Description:
Makes every character uppercase in a string.
Returns: String \ All characters uppercase.
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.upper]String.upper [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes every character uppercase in a string.
Used onNewerShared.png
Code
 
local string = "all of this is small"
local large -- ignore this
Msg(atring)
-- Outputs: all of this is small
large = string.upper(string)
Msg(large)
-- Output: ALL OF THIS IS SMALL
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox