UnicodeReplace (Unicode function): Difference between revisions
Jump to navigation
Jump to search
(Created page with "<span style="font-size:120%; color:black"><b>String after replacements from Unicode replacement table</b></span> UnicodeReplace function [[...") |
m (1 revision) |
(No difference)
|
Revision as of 08:55, 10 December 2010
String after replacements from Unicode replacement table
Items in the replacement table are created with UNICODE Rep update commands, as described in ?? refid=updtuni..
The UnicodeReplace function is available as of version 7.3 of the Sirius Mods.
Syntax
%unicode = unicode:UnicodeReplace
Syntax Terms
- %unicode
- A Unicode variable to receive the method object string altered by any replacement characters.
- unicode
- A Unicode string.
Usage Notes
- The method output is the input Unicode string, with those characters specified in the Unicode replacement table replaced by their corresponding Unicode strings. If no Unicode replacement table is in effect, the method merely copies its input.
Examples
The following example shows a successful call of UnicodeReplace. The U constant function used in the example is described ??U.
An updating UNICODE command is used “in-line” with the User Language request to make the example concrete. In actual usage, updating UNICODE commands should only be issued from your Model 204 initialization stream.
UNICODE Table Standard Rep U=2122 '(TM)' Begin %u Unicode Initial('Cool™':U) Print %u:UnicodeReplace End
The result is:
Cool(TM)