{"name":"toUpperANSI","title":"toUpperANSI","type":"command","url":"https://community.bistudio.com/wiki/toUpperANSI","revid":339630,"updated":"2023-04-28T14:11:56Z","groups":["Strings"],"status":"ok","games":{"arma3":"1.96"},"since":"arma3 1.96","arma3_since":"1.96","description":"Converts the supplied string to all upper case characters fast (could be 3x faster than toUpper).\n\n[ANSI](https://stackoverflow.com/questions/701882/what-is-ansi-format/701920) in this case refers to [ISO-8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) code page.\nThe 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.\nFor Unicode alternative see toUpper.","syntaxes":[{"syntax":"toUpperANSI string","params":[{"name":"string","type":"String","description":"string to convert","type_expr":"String"}],"returns":{"type":"String","type_expr":"String","description":"all upper case string"},"form":"unary","right":{"text":"string"}}],"examples":[{"code":["hint toUpperANSI \"AaBb1\"; // returns \"AABB1\""]}],"see_also":["toLowerANSI","toLower","toString","toArray","toUpper","toFixed"]}