string/lower

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=lower |Parent=string |Description=Changes any upper-case characters in a string to lower-case. |Realm=Shared |IsClass=No }} {{Arg |type=string |name=str ...")
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=lower
+
|Description=Changes any upper-case letters in a string to lower-case letters.
|Parent=string
+
|Description=Changes any upper-case characters in a string to lower-case.
+
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
 +
|Name=lower
 +
|Parent=string
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 13: Line 13:
 
{{Ret
 
{{Ret
 
|type=string
 
|type=string
|desc= lower
+
|desc=A string representing the value of a string converted to lower-case.
 
}}
 
}}
 
{{Example
 
{{Example
| Description = Demonstrates the use of this function.
+
|Description=Demonstrates the use of this function.
| Code =
+
|Code=print( string.lower( "ABCDEFG" ) )
print( string.lower( "ABCDEFG" ) )
+
 
print( string.lower( "AbCdefG" ) )
 
print( string.lower( "AbCdefG" ) )
 
print( string.lower( "abcdefg" ) )
 
print( string.lower( "abcdefg" ) )
| Output = <br/>abcdefg<br/>abcdefg<br/>abcdefg
+
print( string.lower( "1234567890" ) )
 +
|Output=<br/>abcdefg<br/>abcdefg<br/>abcdefg<br/>1234567890
 
}}
 
}}

Revision as of 13:30, 27 October 2015

 string.lower( )

Contents

Description

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

Arguments

string str

The string to convert.

Returns

string

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

Examples

Example

Demonstrates the use of this function.

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

Output:


abcdefg
abcdefg
abcdefg
1234567890
Personal tools
Navigation