UnicodeUntranslatablePosition (Unicode function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%; color:black"><b>Position of first Unicode character not transla</b></span>
<span style="font-size:120%; color:black"><b>Position of first Unicode character not translatable to EBCDIC</b></span>
[[Category:Intrinsic Unicode methods|UnicodeUntranslatablePosition function]]
[[Category:Intrinsic Unicode methods|UnicodeUntranslatablePosition function]]
[[Category:Intrinsic methods]]
[[Category:Intrinsic methods]]
[[Category:System methods]]
[[Category:System methods]]
<!--DPL?? Category:Intrinsic Unicode methods|UnicodeUntranslatablePosition function: Position of first Unicode character not transla-->
<!--DPL?? Category:Intrinsic Unicode methods|UnicodeUntranslatablePosition function: Position of first Unicode character not translatable to EBCDIC-->
<!--DPL?? Category:Intrinsic methods|UnicodeUntranslatablePosition (Unicode function): Position of first Unicode character not transla-->
<!--DPL?? Category:Intrinsic methods|UnicodeUntranslatablePosition (Unicode function): Position of first Unicode character not translatable to EBCDIC-->
<!--DPL?? Category:System methods|UnicodeUntranslatablePosition (Unicode function): Position of first Unicode character not transla-->
<!--DPL?? Category:System methods|UnicodeUntranslatablePosition (Unicode function): Position of first Unicode 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

Revision as of 22:08, 21 December 2010

Position of first Unicode character not translatable to EBCDIC

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

  %position = unicode:UnicodeUntranslatablePosition
%position
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.

Examples

The following fragment shows a successful call of UnicodeUntranslatablePosition. The U constant function is used in the example.

    %u Unicode Initial('A&#x80;B':U)
    Print %u:UnicodeUntranslatablePosition

The result is:

    2