CharacterPosition (CharacterTranslationException property): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 1: | Line 1: | ||
{{Template:CharacterTranslationException:CharacterPosition subtitle}} | |||
==Syntax== | ==Syntax== | ||
{{Template:CharacterTranslationException:CharacterPosition syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 18: | Line 12: | ||
</td></tr></table> | </td></tr></table> | ||
==Usage | ==Usage notes== | ||
<ul> | <ul> | ||
<li>The number of bytes that constitute a character depends on the type of string | <li>The number of bytes that constitute a character depends on the type of string | ||
Line 30: | Line 24: | ||
</ul> | </ul> | ||
</ul> | </ul> | ||
==See also== | |||
{{Template:CharacterTranslationException:CharacterPosition footer}} |
Revision as of 20:42, 25 March 2011
Position of character at which the exception was thrown (CharacterTranslationException class)
Syntax
%number = characterTranslationException: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.