UnicodeUntranslatablePosition (Unicode function)

From m204wiki
Revision as of 06:02, 25 February 2011 by Goff (talk | contribs) (syntax terms, tags and links)
Jump to navigation Jump to search

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

  1. The following fragment shows a successful call of UnicodeUntranslatablePosition.

    %u unicode initial('A€B':U) print %u:UnicodeUntranslatablePosition

    The result is:

    2

See also