toLowerANSI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - "\[ *(https?:\/\/[^ = ]+) +([^= ]+) *\]" to "{{Link|$1|$2}}")
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


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


|1.96|Game version=
|gr1= Strings


|gr1= Strings |GROUP1=
|descr=[[File:ISO-8859-1.jpg|thumb|right|ISO-8859-1]]
Converts the supplied string to all lower case characters fast (could be 3&times; faster than [[toLower]]).
{{Link|https://stackoverflow.com/questions/701882/what-is-ansi-format/701920|ANSI}} in this case refers to {{Link|https://en.wikipedia.org/wiki/ISO/IEC_8859-1|ISO-8859-1}} code page.
The command is primary designed to convert characters with [[toArray | codes]] 0...127 however it 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]].


|[[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 [https://en.wikipedia.org/wiki/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]].|DESCRIPTION=
|s1= [[toLowerANSI]] string


| [[toLowerANSI]] string |SYNTAX=
|p1= string: [[String]] - string to convert


|p1= string: [[String]] - string to convert |PARAMETER1=
|r1= [[String]] - all lower case string


| [[String]] - all lower case string |RETURNVALUE=
|x1= <sqf>hint toLowerANSI "AaBb1"; // returns "aabb1"</sqf>
 
|x1= <code>[[hint]] [[toLowerANSI]] "AaBb1"; // returns "aabb1"</code>|EXAMPLE1=
 
| [[toUpperANSI]], [[toLower]], [[toString]], [[toArray]], [[toUpper]], [[toFixed]] |SEEALSO=


|seealso= [[toUpperANSI]] [[toLower]] [[toString]] [[toArray]] [[toUpper]] [[toFixed]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 15:11, 28 April 2023

Hover & click on the images for description

Description

Description:
ISO-8859-1

Converts the supplied string to all lower case characters fast (could be 3× 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 it 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:
toUpperANSI toLower toString toArray toUpper toFixed

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