PS TEXT FORMAT Reference Manual

Expressions
5-28 11387 Tandem Computers Incorporated
The TRANSLATE function returns unchanged in the output string all
characters from the source string that have no corresponding character in
the key string.
The TRANSLATE function deletes from the output string all source
characters that appear in the key string, but for which there is no
corresponding character in the replacement string. For example:
\TRANSLATE("James","am","on")
returns the string “Jones” .
You can use metacharacters (such as \> or \#) except the comment
metacharacter (\!) in either the key string or the replacement string.
TFORM treats them as single characters. Remember that if you want to use
a character that is the same as the trigger character, you must double it to
make TFORM treat it as a text character. (S)
UPPER Function The UPPER function returns the specified string with all of its letters in
uppercase.
UPPER (
s-exp
)
(S)
WIDTH Function The WIDTH function examines the string argument and, taking into
account the current horizontal pitch setting, returns a number that is equal
to the width of that string in decipoints.
WIDTH (
s-exp
)
(N)