UnicodeUntranslatablePosition (Unicode function)

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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€B':U) print %u:UnicodeUntranslatablePosition

The result is:

2

See also