jdk/src/java.base/share/classes/sun/text/normalizer/UTF16.java
changeset 28059 e576535359cc
parent 25859 3317bb8137f4
child 30655 d83f50188ca9
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
    92  *   structure, you can roundtrip from a UTF-16 offset to a UTF-32 offset and
    92  *   structure, you can roundtrip from a UTF-16 offset to a UTF-32 offset and
    93  *   back if and only if <code>bounds(string, offset16) != TRAIL</code>.
    93  *   back if and only if <code>bounds(string, offset16) != TRAIL</code>.
    94  *   </li>
    94  *   </li>
    95  *   <li>
    95  *   <li>
    96  *    <strong>Exceptions:</strong> The error checking will throw an exception
    96  *    <strong>Exceptions:</strong> The error checking will throw an exception
    97  *   if indices are out of bounds. Other than than that, all methods will
    97  *   if indices are out of bounds. Other than that, all methods will
    98  *   behave reasonably, even if unmatched surrogates or out-of-bounds UTF-32
    98  *   behave reasonably, even if unmatched surrogates or out-of-bounds UTF-32
    99  *   values are present. <code>UCharacter.isLegal()</code> can be used to check
    99  *   values are present. <code>UCharacter.isLegal()</code> can be used to check
   100  *   for validity if desired.
   100  *   for validity if desired.
   101  *   </li>
   101  *   </li>
   102  *   <li>
   102  *   <li>