< prev index next >

src/java.base/share/classes/java/lang/String.java

Print this page




2471      *   <td>tr (Turkish)</td>
2472      *   <th scope="row" style="font-weight:normal; text-align:left">\u0130</th>
2473      *   <td>\u0069</td>
2474      *   <td>capital letter I with dot above -&gt; small letter i</td>
2475      * </tr>
2476      * <tr>
2477      *   <td>tr (Turkish)</td>
2478      *   <th scope="row" style="font-weight:normal; text-align:left">\u0049</th>
2479      *   <td>\u0131</td>
2480      *   <td>capital letter I -&gt; small letter dotless i </td>
2481      * </tr>
2482      * <tr>
2483      *   <td>(all)</td>
2484      *   <th scope="row" style="font-weight:normal; text-align:left">French Fries</th>
2485      *   <td>french fries</td>
2486      *   <td>lowercased all chars in String</td>
2487      * </tr>
2488      * <tr>
2489      *   <td>(all)</td>
2490      *   <th scope="row" style="font-weight:normal; text-align:left">
2491      *       <img src="doc-files/capiota.gif" alt="capiota"><img src="doc-files/capchi.gif" alt="capchi">
2492      *       <img src="doc-files/captheta.gif" alt="captheta"><img src="doc-files/capupsil.gif" alt="capupsil">
2493      *       <img src="doc-files/capsigma.gif" alt="capsigma"></th>
2494      *   <td><img src="doc-files/iota.gif" alt="iota"><img src="doc-files/chi.gif" alt="chi">
2495      *       <img src="doc-files/theta.gif" alt="theta"><img src="doc-files/upsilon.gif" alt="upsilon">
2496      *       <img src="doc-files/sigma1.gif" alt="sigma"></td>
2497      *   <td>lowercased all chars in String</td>
2498      * </tr>
2499      * </tbody>
2500      * </table>
2501      *
2502      * @param locale use the case transformation rules for this locale
2503      * @return the {@code String}, converted to lowercase.
2504      * @see     java.lang.String#toLowerCase()
2505      * @see     java.lang.String#toUpperCase()
2506      * @see     java.lang.String#toUpperCase(Locale)
2507      * @since   1.1
2508      */
2509     public String toLowerCase(Locale locale) {
2510         return isLatin1() ? StringLatin1.toLowerCase(this, value, locale)
2511                           : StringUTF16.toLowerCase(this, value, locale);
2512     }
2513 
2514     /**
2515      * Converts all of the characters in this {@code String} to lower
2516      * case using the rules of the default locale. This is equivalent to calling




2471      *   <td>tr (Turkish)</td>
2472      *   <th scope="row" style="font-weight:normal; text-align:left">\u0130</th>
2473      *   <td>\u0069</td>
2474      *   <td>capital letter I with dot above -&gt; small letter i</td>
2475      * </tr>
2476      * <tr>
2477      *   <td>tr (Turkish)</td>
2478      *   <th scope="row" style="font-weight:normal; text-align:left">\u0049</th>
2479      *   <td>\u0131</td>
2480      *   <td>capital letter I -&gt; small letter dotless i </td>
2481      * </tr>
2482      * <tr>
2483      *   <td>(all)</td>
2484      *   <th scope="row" style="font-weight:normal; text-align:left">French Fries</th>
2485      *   <td>french fries</td>
2486      *   <td>lowercased all chars in String</td>
2487      * </tr>
2488      * <tr>
2489      *   <td>(all)</td>
2490      *   <th scope="row" style="font-weight:normal; text-align:left">
2491      *       &Iota;&Chi;&Theta;&Upsilon;&Sigma;</th>
2492      *   <td>&iota;&chi;&theta;&upsilon;&sigma;</td>




2493      *   <td>lowercased all chars in String</td>
2494      * </tr>
2495      * </tbody>
2496      * </table>
2497      *
2498      * @param locale use the case transformation rules for this locale
2499      * @return the {@code String}, converted to lowercase.
2500      * @see     java.lang.String#toLowerCase()
2501      * @see     java.lang.String#toUpperCase()
2502      * @see     java.lang.String#toUpperCase(Locale)
2503      * @since   1.1
2504      */
2505     public String toLowerCase(Locale locale) {
2506         return isLatin1() ? StringLatin1.toLowerCase(this, value, locale)
2507                           : StringUTF16.toLowerCase(this, value, locale);
2508     }
2509 
2510     /**
2511      * Converts all of the characters in this {@code String} to lower
2512      * case using the rules of the default locale. This is equivalent to calling


< prev index next >