UnicodeUntranslatablePosition (Unicode function): Difference between revisions
Jump to navigation
Jump to search
m (→Examples) |
m (syntax terms, tags and links) |
||
Line 1: | Line 1: | ||
{{Template:Unicode:UnicodeUntranslatablePosition subtitle}} | {{Template:Unicode:UnicodeUntranslatablePosition subtitle}} | ||
<var>UnicodeUntranslatablePosition</var> finds the character position of the first character in the input <var>Unicode</var> string that is <b><i>not</i></b> translatable to EBCDIC. | |||
in the input <var>Unicode</var> string that is | |||
==Syntax== | ==Syntax== | ||
{{Template:Unicode:UnicodeUntranslatablePosition syntax}} | {{Template:Unicode:UnicodeUntranslatablePosition syntax}} | ||
Line 11: | Line 8: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%number</th> | ||
<td>A numeric variable to receive either of the following: <ul> <li>0, indicating that all of the input <var>Unicode</var> characters are translatable to EBCDIC. <li>The character position of the first character that is not translatable to EBCDIC. Position 1 is the first character in the string. </ul> </td></tr> | <td>A numeric variable to receive either of the following: <ul> <li>0, indicating that all of the input <var>Unicode</var> characters are translatable to EBCDIC. <li>The character position of the first character that is not translatable to EBCDIC. Position 1 is the first character in the string. </ul> </td></tr> | ||
<tr><th>unicode</th> | <tr><th>unicode</th> | ||
<td>A <var>Unicode</var> string.</td></tr> | <td>A <var>Unicode</var> string.</td></tr> | ||
</table> | </table> | ||
==Usage Notes== | |||
<ul><li><var>UnicodeUntranslatablePosition</var> is available as of <var class="product">[[Sirius Mods|"Sirius Mods"]]</var> Version 7.3.</ul> | |||
==Examples== | ==Examples== | ||
<ol><li>The following fragment shows a successful call of <var>UnicodeUntranslatablePosition</var>. | |||
The following fragment shows a successful call of <var>UnicodeUntranslatablePosition</var> | <p class="code">%u unicode initial('A&#x80;B':[[U (String function)|U]]) | ||
print %u:UnicodeUntranslatablePosition | |||
<p class="code">%u | |||
</p> | </p> | ||
The result is: | The result is: | ||
<p class="output">2 | <p class="output">2 | ||
</p> | </p></ol> | ||
==See also== | ==See also== | ||
{{Template:Unicode:UnicodeUntranslatablePosition footer}} | {{Template:Unicode:UnicodeUntranslatablePosition footer}} |
Revision as of 06:02, 25 February 2011
Position of first Unicode character not translatable to EBCDIC (Unicode class)
UnicodeUntranslatablePosition finds the character position of the first character in the input Unicode string that is not translatable to EBCDIC.
Syntax
%number = unicode:UnicodeUntranslatablePosition
Syntax terms
%number | A numeric variable to receive either of the following:
|
---|---|
unicode | A Unicode string. |
Usage Notes
- UnicodeUntranslatablePosition is available as of "Sirius Mods" Version 7.3.
Examples
- The following fragment shows a successful call of UnicodeUntranslatablePosition.
%u unicode initial('A€B':U) print %u:UnicodeUntranslatablePosition
The result is:
2