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


Chapter 3 Tools : LOWER_UNICODE

LOWER_UNICODE
Converts a string to lowercase Unicode characters. (F)
Invocation
lower_string = LOWER_UNICODE(string)
 
The string to convert to lowercase letters. Its syntax is C (fixed-length character string), UN, or V (variable-length character string).
Usage Note
LOWER_UNICODE lowercases strings using the TIBCO Object Service Broker Unicode casing rules.

Exceptions
 
Example
This rule lowercases a string and prints the result to the message log:

 
LOWERCASE_SAMPLE;
_ LOCAL A;
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ A = U'AÇaç'; ¦ 1
_ CALL MSGLOG('CASING OF UNICODE STRING ' || A); ¦ 2
_ CALL MSGLOG(' '); ¦ 3
_ CALL MSGLOG('LOWER_UNICODE GIVES ' || LOWER_UNICODE(A)); ¦ 4
_ CALL MSGLOG('SYNTAX IS ' || $GET_SYNTAX(LOWER_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('LOWER_UNICODE GIVES ' || LOWER_UNICODE(A)); ¦ A
_ CALL MSGLOG('SYNTAX IS ' || $GET_SYNTAX(LOWER_UNICODE(A)); ¦ B

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

 
COMMAND ===> SCROLL ===> P
CASING OF UNICODE STRING AÇaç
LOWER_UNICODE GIVES açaç
SYNTAX IS UN
CASING OF EBCDIC STRING AÇaç
LOWER_UNICODE GIVES açaç
SYNTAX IS UN

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

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