toLowerANSI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.95|= Game version ______________...")
 
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
(31 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.96


|1.95|= Game version
|gr1= Strings
____________________________________________________________________________________________


| Converts the supplied [https://stackoverflow.com/questions/701882/what-is-ansi-format/701920 ANSI string] to all lower case characters. For Unicode alternative see [[toLower]].<br>
|descr=[[File:ISO-8859-1.jpg|thumb|right|ISO-8859-1]]Converts the supplied string to all lower case characters fast (could be 3x faster than [[toLower]]). [https://stackoverflow.com/questions/701882/what-is-ansi-format/701920 ANSI] in this case refers to {{Wikipedia|ISO/IEC_8859-1|ISO-8859-1}} code page. The command is primary designed to convert characters with [[toArray | codes]] 0...127 however will also convert other characters in 128...255 range as long as they are present in ISO-8859-1 codepage. For Unicode alternative see [[toLower]].
{{Informative | This command is much faster than its Unicode version. For example a 100 chars string would be tolowered 2x faster than using [[toLower]], and 500 chars string - 3x faster, etc. In most cases you probably won't need Unicode version, but historically it was the only version available until now.}} |DESCRIPTION=
____________________________________________________________________________________________


| [[toLowerANSI]] string |SYNTAX=
|s1= [[toLowerANSI]] string


|p1= string: [[String]] - ANSI string |PARAMETER1=
|p1= string: [[String]] - string to convert


| [[String]] - all lower case string |RETURNVALUE=
|r1= [[String]] - all lower case string
____________________________________________________________________________________________


|x1= <code>[[hint]] [[toLowerANSI]] "AaBb1"; // returns "aabb1"</code>|EXAMPLE1=
|x1= <code>[[hint]] [[toLowerANSI]] "AaBb1"; // returns "aabb1"</code>
____________________________________________________________________________________________
 
| [[toString]], [[toArray]], [[toUpper]], [[toFixed]] |SEEALSO=


|seealso= [[toUpperANSI]], [[toLower]], [[toString]], [[toArray]], [[toUpper]], [[toFixed]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 23:45, 16 June 2021

Hover & click on the images for description

Description

Description:
ISO-8859-1
Converts the supplied string to all lower case characters fast (could be 3x faster than toLower). ANSI in this case refers to ISO-8859-1 code page. The command is primary designed to convert characters with codes 0...127 however will also convert other characters in 128...255 range as long as they are present in ISO-8859-1 codepage. For Unicode alternative see toLower.
Groups:
Strings

Syntax

Syntax:
toLowerANSI string
Parameters:
string: String - string to convert
Return Value:
String - all lower case string

Examples

Example 1:
hint toLowerANSI "AaBb1"; // returns "aabb1"

Additional Information

See also:
toUpperANSItoLowertoStringtoArraytoUppertoFixed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note