toUpperANSI: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{uc:{{PAGENAME}}}} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "") |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.96 | |||
|1.96 | |||
|gr1= Strings | |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 {{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 [[toUpper]]. | |descr=[[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 {{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 [[toUpper]]. | ||
| [[toUpperANSI]] string | |s1= [[toUpperANSI]] string | ||
|p1= string: [[String]] - string to convert | |p1= string: [[String]] - string to convert | ||
| [[String]] - all upper case string | |r1= [[String]] - all upper case string | ||
|x1= <code>[[hint]] [[toUpperANSI]] "AaBb1"; // returns "AABB1"</code> | |x1= <code>[[hint]] [[toUpperANSI]] "AaBb1"; // returns "AABB1"</code> | ||
Line 19: | Line 18: | ||
|seealso= [[toLowerANSI]], [[toLower]], [[toString]], [[toArray]], [[toUpper]], [[toFixed]] | |seealso= [[toLowerANSI]], [[toLower]], [[toString]], [[toArray]], [[toUpper]], [[toFixed]] | ||
}} | }} | ||
Revision as of 22:45, 16 June 2021
Description
- Description:
- 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
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