jdk/src/share/classes/java/lang/String.java
changeset 21308 638d0533f230
parent 19815 5b15fa787fab
child 21334 c60dfce46a77
equal deleted inserted replaced
21307:d9d1ad598db1 21308:638d0533f230
  2596             } else {
  2596             } else {
  2597                 srcCount = 1;
  2597                 srcCount = 1;
  2598             }
  2598             }
  2599             if (localeDependent || srcChar == '\u03A3') { // GREEK CAPITAL LETTER SIGMA
  2599             if (localeDependent || srcChar == '\u03A3') { // GREEK CAPITAL LETTER SIGMA
  2600                 lowerChar = ConditionalSpecialCasing.toLowerCaseEx(this, i, locale);
  2600                 lowerChar = ConditionalSpecialCasing.toLowerCaseEx(this, i, locale);
  2601             } else if (srcChar == '\u0130') { // LATIN CAPITAL LETTER I DOT
       
  2602                 lowerChar = Character.ERROR;
       
  2603             } else {
  2601             } else {
  2604                 lowerChar = Character.toLowerCase(srcChar);
  2602                 lowerChar = Character.toLowerCase(srcChar);
  2605             }
  2603             }
  2606             if ((lowerChar == Character.ERROR)
  2604             if ((lowerChar == Character.ERROR)
  2607                     || (lowerChar >= Character.MIN_SUPPLEMENTARY_CODE_POINT)) {
  2605                     || (lowerChar >= Character.MIN_SUPPLEMENTARY_CODE_POINT)) {
  2608                 if (lowerChar == Character.ERROR) {
  2606                 if (lowerChar == Character.ERROR) {
  2609                     if (!localeDependent && srcChar == '\u0130') {
  2607                     lowerCharArray =
  2610                         lowerCharArray =
  2608                             ConditionalSpecialCasing.toLowerCaseCharArray(this, i, locale);
  2611                                 ConditionalSpecialCasing.toLowerCaseCharArray(this, i, Locale.ENGLISH);
       
  2612                     } else {
       
  2613                         lowerCharArray =
       
  2614                                 ConditionalSpecialCasing.toLowerCaseCharArray(this, i, locale);
       
  2615                     }
       
  2616                 } else if (srcCount == 2) {
  2609                 } else if (srcCount == 2) {
  2617                     resultOffset += Character.toChars(lowerChar, result, i + resultOffset) - srcCount;
  2610                     resultOffset += Character.toChars(lowerChar, result, i + resultOffset) - srcCount;
  2618                     continue;
  2611                     continue;
  2619                 } else {
  2612                 } else {
  2620                     lowerCharArray = Character.toChars(lowerChar);
  2613                     lowerCharArray = Character.toChars(lowerChar);