CharacterPosition (CharacterTranslationException property)

From m204wiki
Revision as of 05:40, 15 April 2011 by Goff (talk | contribs)
Jump to navigation Jump to search

Position of character at which the exception was thrown (CharacterTranslationException class)

Syntax

%number = characterTranslationException:CharacterPosition

Syntax terms

%number The position of the character at which the exception was thrown.
characterTranslationException A reference to an instance of a CharacterTranslationException object.

Usage notes

  • The number of bytes that constitute a character depends on the type of string that causes the exception:
    • If EBCDIC, one byte corresponds to one character.
    • If Unicode, two bytes correspond to one character.
    • If UTF-16, two bytes correspond to one character.
    • If UTF-8, the relationship between bytes and characters is variable, depending on the code points.

See also