|
|
(4 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| | | #REDIRECT [[CharacterTranslationException class#CharacterPosition property|CharacterPosition property]] |
| <span class="pageSubtitle"><section begin=dpl_desc/>Position of character at which the exception was thrown<section end=dpl_desc/></span>
| |
| [[Category:CharacterTranslationException methods|CharacterPosition property]] | | [[Category:CharacterTranslationException methods|CharacterPosition property]] |
| <p>
| |
| CharacterPosition is a member of the [[CharacterTranslationException class]].
| |
| </p>
| |
|
| |
| ==Syntax==
| |
| <p class="syntax">%num = %chTransEx:CharacterPosition
| |
| </p>
| |
| ===Syntax terms===
| |
| <table class="syntaxTable">
| |
| <tr><th>%num</th>
| |
| <td>The position of the character at which the exception was thrown.
| |
| </td></tr>
| |
| <tr><th>%chTransEx</th>
| |
| <td>A reference to an instance of a CharacterTranslationException 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>
| |