UnicodeReplace (Unicode function): Difference between revisions
Jump to navigation
Jump to search
m (tags and edits) |
m (tags and edits) |
||
Line 15: | Line 15: | ||
==Usage notes== | ==Usage notes== | ||
<ul><li>The method output is the input <var>Unicode</var> string, with those characters specified in the Unicode replacement table replaced by their corresponding <var>Unicode</var> strings. If no Unicode replacement table is in effect, the method merely copies its input. | <ul><li>The method output is the input <var>Unicode</var> string, with those characters specified in the Unicode replacement table replaced by their corresponding <var>Unicode</var> strings. If no Unicode replacement table is in effect, the method merely copies its input. | ||
<li><var>UnicodeReplace</var> is available as of <var class="product">[[Sirius Mods| | <li><var>UnicodeReplace</var> is available as of <var class="product">[[Sirius Mods|Sirius Mods]]</var> Version 7.3. | ||
</ul> | </ul> | ||
Line 23: | Line 23: | ||
accordingly, a subsequent <var>UnicodeReplace</var> example: | accordingly, a subsequent <var>UnicodeReplace</var> example: | ||
<p class="code">begin | <p class="code">begin | ||
%u Unicode Initial('Cool&#x2122;':[[U (String function)|U]]) | %u Unicode Initial('Cool&amp;#x2122;':[[U (String function)|U]]) | ||
print %u:UnicodeReplace | print %u:UnicodeReplace | ||
end | end |
Revision as of 17:46, 4 May 2011
Apply the replacement table to this string (Unicode class)
UnicodeReplace lets you examine a given Unicode string for any replacement characters that may be in effect at your site.
The Sirius Mods Unicode tables specify translations between EBCDIC and Unicode/ASCII. The UNICODE command lets your site create customizations (one or many replacements) of those translations, as described in "Update forms of UNICODE".
Syntax
%outUnicode = unicode:UnicodeReplace
Syntax terms
%outUnicode | 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.
- UnicodeReplace is available as of Sirius Mods Version 7.3.
Examples
- In actual usage, updating UNICODE commands should only be issued from your Model 204 initialization stream. For the sake of this example, assume that the following had been included:
UNICODE Table Standard Rep U=2122 '(TM)'
accordingly, a subsequent UnicodeReplace example:
begin %u Unicode Initial('Cool&#x2122;':U) print %u:UnicodeReplace end
would result is:
Cool(TM)