string.upper

From Garry's Mod
Jump to: navigation, search
 string.upper( )

Contents

Description

Changes any lower-case letters in a string to upper-case letters.

Arguments

string str

The string to convert.

Returns

string

A string representing the value of a string converted to upper-case.

Examples

Example

Demonstrates the use of this function.

print( string.upper( "ABCDEFG" ) )
print( string.upper( "AbCdefG" ) )
print( string.upper( "abcdefg" ) )
print( string.upper( "1234567890" ) )

Output:


ABCDEFG
ABCDEFG
ABCDEFG
1234567890
Personal tools
Navigation