CharacterPosition (CharacterTranslationException property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (match syntax table to syntax template, tags and edits)
mNo edit summary
Line 9: Line 9:
<tr><th>characterTranslationException</th>
<tr><th>characterTranslationException</th>
<td>A reference to an instance of a <var>[[CharacterTranslationException_class|CharacterTranslationException]]</var> object.
<td>A reference to an instance of a <var>[[CharacterTranslationException_class|CharacterTranslationException]]</var> object.
</td></tr></table>


</td></tr></table>
==Usage notes==
==Usage notes==
<ul>
<ul>
Line 21: Line 21:
<li>If UTF-8, the relationship between bytes and characters is
<li>If UTF-8, the relationship between bytes and characters is
variable, depending on the code points.
variable, depending on the code points.
</ul>
</ul></ul>
</ul>
 
==See also==
==See also==
{{Template:CharacterTranslationException:CharacterPosition footer}}
{{Template:CharacterTranslationException:CharacterPosition footer}}

Revision as of 05:40, 15 April 2011

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