UnicodeUntranslatablePosition (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Position of first Unicode character not transla</b></span>
{{Template:Unicode:UnicodeUntranslatablePosition subtitle}}
[[Category:Intrinsic Unicode methods|UnicodeUntranslatablePosition function]]
[[Category:Intrinsic methods]]
[[Category:System methods]]
<!--DPL?? Category:Intrinsic Unicode methods|UnicodeUntranslatablePosition function: Position of first Unicode character not transla-->
<!--DPL?? Category:Intrinsic methods|UnicodeUntranslatablePosition (Unicode function): Position of first Unicode character not transla-->
<!--DPL?? Category:System methods|UnicodeUntranslatablePosition (Unicode function): Position of first Unicode character not transla-->


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 Unicode string that is ''not'' translatable to EBCDIC.


The UnicodeUntranslatablePosition function is available as of version 7.3 of
==Syntax==
the ''Sirius Mods''.
{{Template:Unicode:UnicodeUntranslatablePosition syntax}}
===Syntax===
 
  %position = unicode:UnicodeUntranslatablePosition
===Syntax terms===
<dl>
<table class="syntaxTable">
<dt><i>%position</i>
<tr><th>%number</th>
<dd>A numeric variable to receive either of the following:
<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>
<td>A <var>Unicode</var> string.</td></tr>
</table>
 
==Usage Notes==
<ul>
<ul>
<li>0, indicating that all of the input Unicode
<li><var>UnicodeUntranslatablePosition</var> is available as of <var class="product">Sirius Mods</var> Version 7.3.
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>
</ul>
<dt><i>unicode</i>
<dd>A Unicode string.


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


The following fragment shows a successful call of UnicodeUntranslatablePosition.
==See also==
The [[U (String function)|U constant function]] is used in the example.
{{Template:Unicode:UnicodeUntranslatablePosition footer}}
<pre>
    %u Unicode Initial('A&amp;#x80;B':U)
    Print %u:UnicodeUntranslatablePosition
</pre>
 
The result is:
<pre>
    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