UnicodeUntranslatablePosition (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:Unicode:UnicodeUntranslatablePosition subtitle}}
{{Template:Unicode:UnicodeUntranslatablePosition subtitle}}
[[Category:Unicode methods|UnicodeUntranslatablePosition function]]
[[Category:Intrinsic methods]]
<!--DPL?? Category:<var>Unicode</var> methods|<var>UnicodeUntranslatablePosition</var> function: Position of first <var>Unicode</var> character not translatable to EBCDIC-->
<!--DPL?? Category:Intrinsic methods|<var>UnicodeUntranslatablePosition</var> (<var>Unicode</var> function): Position of first <var>Unicode</var> character not translatable to EBCDIC-->
<!--DPL?? Category:<var>System</var> methods|<var>UnicodeUntranslatablePosition</var> (<var>Unicode</var> function): Position of first <var>Unicode</var> character not translatable to EBCDIC-->


This function finds the character position of the first character
<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 ''not'' translatable to EBCDIC.


The <var>UnicodeUntranslatablePosition</var> function is available as of version 7.3 of
the <var class=product>Sirius Mods</var>.
==Syntax==
==Syntax==
{{Template:Unicode:UnicodeUntranslatablePosition syntax}}
{{Template:Unicode:UnicodeUntranslatablePosition syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<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>


<table class="syntaxTable">
<tr><th>unicode</th>
<tr><th><i>%position</i></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>
<tr><th><i>unicode</i></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</var> Version 7.3.
</ul>


==Examples==
==Examples==
The following fragment shows a successful call of <var>UnicodeUntranslatablePosition</var>.
The following fragment shows a successful call of <var>UnicodeUntranslatablePosition</var>.
The [[U (String function)|U constant function]] is used in the example.
<p class="code">%u unicode initial('A&amp;#x80;B':[[U (String function)|U]])
<pre>
print %u:UnicodeUntranslatablePosition
    %u <var>Unicode</var> Initial('A&amp;#x80;B':U)
</p>
    Print %u:<var>UnicodeUntranslatablePosition</var>
The result is:
</pre>
<p class="output">2
</p>


The result is:
==See also==
<pre>
{{Template:Unicode:UnicodeUntranslatablePosition footer}}
    2
</pre>

Latest revision as of 20:18, 6 November 2012

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:
  • 0, indicating that all of the input Unicode characters are translatable to EBCDIC.
  • The character position of the first character that is not translatable to EBCDIC. Position 1 is the first character in the string.
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&#x80;B':U) print %u:UnicodeUntranslatablePosition

The result is:

2

See also