|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| {{Template:CharacterTranslationException:CharacterPosition subtitle}}
| | #REDIRECT [[CharacterTranslationException class#CharacterPosition property|CharacterPosition property]] |
| ==Syntax==
| | [[Category:CharacterTranslationException methods|CharacterPosition property]] |
| {{Template:CharacterTranslationException:CharacterPosition syntax}}
| |
| ===Syntax terms===
| |
| <table class="syntaxTable">
| |
| <tr><th>%number</th>
| |
| <td>The position of the character at which the exception was thrown.
| |
| </td></tr>
| |
| <tr><th>characterTranslationException</th>
| |
| <td>A reference to an instance of a <var>[[CharacterTranslationException_class|CharacterTranslationException]]</var> object.
| |
| | |
| </td></tr></table>
| |
| ==Usage notes==
| |
| <ul>
| |
| <li>The number of bytes that constitute a character depends on the type of string
| |
| that causes the exception:
| |
| <ul>
| |
| <li>If EBCDIC, one byte corresponds to one character.
| |
| <li>If [[Unicode]], two bytes correspond to one character.
| |
| <li>If UTF-16, two bytes correspond to one character.
| |
| <li>If UTF-8, the relationship between bytes and characters is
| |
| variable, depending on the code points.
| |
| </ul>
| |
| </ul>
| |
| ==See also==
| |
| {{Template:CharacterTranslationException:CharacterPosition footer}}
| |