TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-366
#SHIFTSTRING Built-In Function
#SHIFTSTRING Built-In Function
Use #SHIFTSTRING to change text from uppercase to lowercase and from lowercase
to uppercase.
option
specifies how the text should be shifted. If you omit the option, the shift direction
defaults to the current value of the #SHIFTDEFAULT built-in variable. option is
one of these:
DOWN
specifies that the text is to be shifted to lowercase.
NOOP
specifies that the text is not to be shifted.
UP
specifies that the text is to be shifted to uppercase.
text
is the text to be shifted. If not specified, #SHIFTSTRING does nothing.
Result
#SHIFTSTRING returns the text argument, shifted as specified.
Considerations
If you do not specify a shift direction, it defaults to the current value-DOWN,
NOOP, or UP-of the #SHIFTDEFAULT built-in variable.
If you specify the NOOP option, or if the current #SHIFTDEFAULT setting is
NOOP, #SHIFTSTRING does nothing.
If the CPRULES0 character-processing rules are in effect, a number of lowercase
characters (but not all) in the upper half of the international character set lose their
diacritical marks when upshifted. Subsequent downshifting does not restore them.
For example:
When the CPRULES1 rules are in effect, diacritical marks remain intact when
characters that have them are upshifted.
#SHIFTSTRING [ / option / ] [ text ]
Upshift Downshift
ãiú = ÃIU ÃIU = ãiu