toUpperANSI: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.96|Game version=
|1.96


|gr1= Strings |GROUP1=
|gr1= Strings


|[[File:ISO-8859-1.jpg|thumb|right|ISO-8859-1]]Converts the supplied string to all upper case characters fast (could be 3x faster than [[toUpper]]). [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 [[toUpper]].|DESCRIPTION=
|[[File:ISO-8859-1.jpg|thumb|right|ISO-8859-1]]Converts the supplied string to all upper case characters fast (could be 3x faster than [[toUpper]]). [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 [[toUpper]].


| [[toUpperANSI]] string |SYNTAX=
| [[toUpperANSI]] string


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


| [[String]] - all upper case string |RETURNVALUE=
| [[String]] - all upper case string


|x1= <code>[[hint]] [[toUpperANSI]] "AaBb1"; // returns "AABB1"</code>|EXAMPLE1=
|x1= <code>[[hint]] [[toUpperANSI]] "AaBb1"; // returns "AABB1"</code>


| [[toLowerANSI]], [[toLower]], [[toString]], [[toArray]], [[toUpper]], [[toFixed]] |SEEALSO=
| [[toLowerANSI]], [[toLower]], [[toString]], [[toArray]], [[toUpper]], [[toFixed]]


}}
}}

Revision as of 12:26, 18 January 2021

Hover & click on the images for description

Description

Description:
ISO-8859-1
Converts the supplied string to all upper case characters fast (could be 3x faster than toUpper). 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 toUpper.
Groups:
Strings

Syntax

Syntax:
toUpperANSI string
Parameters:
string: String - string to convert
Return Value:
String - all upper case string

Examples

Example 1:
hint toUpperANSI "AaBb1"; // returns "AABB1"

Additional Information

See also:
toLowerANSItoLowertoStringtoArraytoUppertoFixed

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