UnicodeUntranslatablePosition (Unicode function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 15: | Line 15: | ||
===Syntax terms=== | ===Syntax terms=== | ||
< | <table class="syntaxTable"> | ||
< | <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> | ||
<ul> | <tr><th><i>unicode</i> </th> | ||
<li>0, indicating that all of the input Unicode | <td>A Unicode string.</td></tr> | ||
characters are translatable to EBCDIC. | </table> | ||
<li>The character | |||
position of the first character that is not translatable to EBCDIC. | |||
Position 1 is the first character in the string. | |||
</ul> | |||
< | |||
< | |||
</ | |||
==Examples== | ==Examples== |
Revision as of 04:34, 19 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 Unicode Initial('A€B':U) Print %u:UnicodeUntranslatablePosition
The result is:
2