UnicodeUntranslatablePosition (Unicode function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 2: | Line 2: | ||
[[Category:Unicode methods|UnicodeUntranslatablePosition function]] | [[Category:Unicode methods|UnicodeUntranslatablePosition function]] | ||
[[Category:Intrinsic methods]] | [[Category:Intrinsic methods]] | ||
<!--DPL?? Category:Unicode methods|<var>UnicodeUntranslatablePosition</var> function: Position of first Unicode character not translatable to EBCDIC--> | <!--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> (Unicode function): Position of first Unicode 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:System methods|<var>UnicodeUntranslatablePosition</var> (Unicode function): Position of first Unicode 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 | This function finds the character position of the first character | ||
in the input Unicode string that is ''not'' 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>UnicodeUntranslatablePosition</var> function is available as of version 7.3 of | ||
Line 17: | Line 17: | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th><i>%position</i></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 Unicode 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><i>unicode</i></th> | <tr><th><i>unicode</i></th> | ||
<td>A Unicode string.</td></tr> | <td>A <var>Unicode</var> string.</td></tr> | ||
</table> | </table> | ||
Line 27: | Line 27: | ||
The [[U (String function)|U constant function]] is used in the example. | The [[U (String function)|U constant function]] is used in the example. | ||
<pre> | <pre> | ||
%u Unicode Initial('A&#x80;B':U) | %u <var>Unicode</var> Initial('A&#x80;B':U) | ||
Print %u:<var>UnicodeUntranslatablePosition</var> | Print %u:<var>UnicodeUntranslatablePosition</var> | ||
</pre> | </pre> |
Revision as of 15:49, 20 January 2011
Position of first Unicode character not translatable to EBCDIC (Unicode class)
This function finds the character position of the first character in the input Unicode string that is not translatable to EBCDIC.
The UnicodeUntranslatablePosition function is available as of version 7.3 of the Sirius Mods.
Syntax
%number = unicode:UnicodeUntranslatablePosition
Syntax terms
%position | A numeric variable to receive either of the following:
|
---|---|
unicode | A Unicode string. |
Examples
The following fragment shows a successful call of UnicodeUntranslatablePosition. The U constant function is used in the example.
%u <var>Unicode</var> Initial('A€B':U) Print %u:<var>UnicodeUntranslatablePosition</var>
The result is:
2