Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : UPPER_UNICODE

UPPER_UNICODE
Converts a string to uppercase Unicode characters. (F)
Invocation
upper_string = UPPER_UNICODE(string)
 
The string to convert to uppercase letters. Its syntax is C (fixed-length character string), RD (raw data), UN, or V (variable-length character string).
Usage Note
UPPER_UNICODE uppercases strings using the TIBCO Object Service Broker Unicode casing rules.
The default Unicode casing rules supplied with the product are the recommended default from the Unicode consortium. You can tailor it for your environment.
For example, “ç” cases to “Ç” in the default Unicode rules.
Example
The following rule uppercases a string and prints the result to the message log:

 
UPPERCASE_SAMPLE;
_ LOCAL A;
_ -----------------------------------------------------------------
_ ------------------------------------------------------------+----
_ A = U'AÇaç'; ¦ 1
_ CALL MSGLOG('CASING OF UNICODE STRING ' || A); ¦ 2
_ CALL MSGLOG(' '); ¦ 3
_ CALL MSGLOG('UPPER_UNICODE GIVES ' || UPPER_UNICODE(A)); ¦ 4
_ CALL MSGLOG('SYNTAX IS ' || $GET_SYNTAX(UPPER_UNICODE(A)); ¦ 5
_ A = $TYPECAST('S', 'V', 4, 0, A); ¦ 6
_ CALL MSGLOG(' '); ¦ 7
_ CALL MSGLOG('CASING OF EBCDIC STRING ' || A); ¦ 8
_ CALL MSGLOG(' '); ¦ 9
_ CALL MSGLOG('UPPER_UNICODE GIVES ' || UPPER_UNICODE(A)); ¦ A
_ CALL MSGLOG('SYNTAX IS ' || $GET_SYNTAX(UPPER_UNICODE(A)); ¦ B

 
Line 1 sets local variable A as a Unicode string. Line 6 changes it to an EBCDIC V string.
Resulting Output
Pressing PF2 after executing this rule displays the following screen:

 
----------------------- INFORMATIONAL MESSAGE LOG --------------------
COMMAND ===> SCROLL ===> P
 
CASING OF UNICODE STRING AÇaç
UPPER_UNICODE GIVES AÇAÇ
SYNTAX IS UN
CASING OF EBCDIC STRING AÇaç
UPPER_UNICODE GIVES AÇAÇ
SYNTAX IS UN

 
See Also
Related tools: LOWER_EBCDIC, LOWER_UNICODE, LOWERCASE, UPPER_EBCDIC, and UPPERCASE.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved