UnicodeToUpper and UnicodeToLower (Unicode functions)
Translate to uppercase/lowercase (Unicode class)
The UnicodeToUpper and UnicodeToLower functions return the Unicode alphabetic characters in the method object string as all-uppercase or all-lowercase characters, respectively. Non-alphabetic characters are returned as is, and the input string undergoes no other change.
Character references are returned for characters that do not translate to an EBCDIC character. The default substitute for non-displayable characters in your environment, say a question mark (?), is returned for characters that translate to an EBCDIC character that is not displayable.
These methods produce a one-for-one character translation, which will fail to correctly handle unusual characters whose uppercase versions have two-characters.
%outUnicode = unicode:UnicodeToUpper
%outUnicode = unicode:UnicodeToLower
|%outUnicode||A Unicode variable to receive the all-uppercase or all-lowercase Unicode characters.|
|unicode||The input Unicode string.|
- UnicodeToUpper and UnicodeToLower are available as of Sirius Mods Version 7.7.
The following code fragment:
%u:UnicodeToUpper = '} ABC5XYZ! Δ Ա ?' %u:UnicodeToLower = '} abc5xyz! δ ա ?'