CharacterPosition (CharacterTranslationException property)

From m204wiki
Revision as of 19:38, 14 January 2011 by 198.242.244.47 (talk) (Created page with " <span class="pageSubtitle"><section begin=dpl_desc/>Position of character at which the exception was thrown<section end=dpl_desc/></span> [[Category:CharacterTranslationExceptio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin=dpl_desc/>Position of character at which the exception was thrown<section end=dpl_desc/>

CharacterPosition is a member of the CharacterTranslationException class.

Syntax

%num = %chTransEx:CharacterPosition

Syntax terms

%num The position of the character at which the exception was thrown.
%chTransEx 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.