UnicodeUntranslatablePosition (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
==Syntax==
==Syntax==
{{Template:Unicode:UnicodeUntranslatablePosition syntax}}
{{Template:Unicode:UnicodeUntranslatablePosition syntax}}
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%number</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>
Line 15: Line 16:


==Usage Notes==
==Usage Notes==
<ul><li><var>UnicodeUntranslatablePosition</var> is available as of <var class="product">[[Sirius Mods]]</var> Version 7.3.</ul>
<ul>
<li><var>UnicodeUntranslatablePosition</var> is available as of <var class="product">Sirius Mods</var> Version 7.3.
</ul>


==Examples==
==Examples==

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