< prev index next >

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

Print this page

        

*** 2201,2216 **** * have any length, and trailing empty strings will be discarded. * * <p> The string {@code "boo:and:foo"}, for example, yields the * following results with these parameters: * ! * <blockquote><table cellpadding=1 cellspacing=0 summary="Split example showing regex, limit, and result"> * <tr> * <th>Regex</th> * <th>Limit</th> * <th>Result</th> * </tr> * <tr><td style="text-align:center">:</td> * <td style="text-align:center">2</td> * <td>{@code { "boo", "and:foo" }}</td></tr> * <tr><td style="text-align:center">:</td> * <td style="text-align:center">5</td> --- 2201,2220 ---- * have any length, and trailing empty strings will be discarded. * * <p> The string {@code "boo:and:foo"}, for example, yields the * following results with these parameters: * ! * <blockquote><table class="plain"> ! * <caption style="display:none">Split example showing regex, limit, and result</caption> ! * <thead> * <tr> * <th>Regex</th> * <th>Limit</th> * <th>Result</th> * </tr> + * </thead> + * <tbody> * <tr><td style="text-align:center">:</td> * <td style="text-align:center">2</td> * <td>{@code { "boo", "and:foo" }}</td></tr> * <tr><td style="text-align:center">:</td> * <td style="text-align:center">5</td>
*** 2225,2234 **** --- 2229,2239 ---- * <td style="text-align:center">-2</td> * <td>{@code { "b", "", ":and:f", "", "" }}</td></tr> * <tr><td style="text-align:center">o</td> * <td style="text-align:center">0</td> * <td>{@code { "b", "", ":and:f" }}</td></tr> + * </tbody> * </table></blockquote> * * <p> An invocation of this method of the form * <i>str.</i>{@code split(}<i>regex</i>{@code ,}&nbsp;<i>n</i>{@code )} * yields the same result as the expression
*** 2324,2342 **** * the resulting array. * * <p> The string {@code "boo:and:foo"}, for example, yields the following * results with these expressions: * ! * <blockquote><table cellpadding=1 cellspacing=0 summary="Split examples showing regex and result"> * <tr> * <th>Regex</th> * <th>Result</th> * </tr> * <tr><td style="text-align:center">:</td> * <td>{@code { "boo", "and", "foo" }}</td></tr> * <tr><td style="text-align:center">o</td> * <td>{@code { "b", "", ":and:f" }}</td></tr> * </table></blockquote> * * * @param regex * the delimiting regular expression --- 2329,2352 ---- * the resulting array. * * <p> The string {@code "boo:and:foo"}, for example, yields the following * results with these expressions: * ! * <blockquote><table class="plain"> ! * <caption style="display:none">Split examples showing regex and result</caption> ! * <thead> * <tr> * <th>Regex</th> * <th>Result</th> * </tr> + * </thead> + * <tbody> * <tr><td style="text-align:center">:</td> * <td>{@code { "boo", "and", "foo" }}</td></tr> * <tr><td style="text-align:center">o</td> * <td>{@code { "b", "", ":and:f" }}</td></tr> + * </tbody> * </table></blockquote> * * * @param regex * the delimiting regular expression
*** 2443,2459 **** * on the Unicode Standard version specified by the {@link java.lang.Character Character} * class. Since case mappings are not always 1:1 char mappings, the resulting * {@code String} may be a different length than the original {@code String}. * <p> * Examples of lowercase mappings are in the following table: ! * <table border="1" summary="Lowercase mapping examples showing language code of locale, upper case, lower case, and description"> * <tr> * <th>Language Code of Locale</th> * <th>Upper Case</th> * <th>Lower Case</th> * <th>Description</th> * </tr> * <tr> * <td>tr (Turkish)</td> * <td>\u0130</td> * <td>\u0069</td> * <td>capital letter I with dot above -&gt; small letter i</td> --- 2453,2473 ---- * on the Unicode Standard version specified by the {@link java.lang.Character Character} * class. Since case mappings are not always 1:1 char mappings, the resulting * {@code String} may be a different length than the original {@code String}. * <p> * Examples of lowercase mappings are in the following table: ! * <table class="plain"> ! * <caption style="display:none">Lowercase mapping examples showing language code of locale, upper case, lower case, and description</caption> ! * <thead> * <tr> * <th>Language Code of Locale</th> * <th>Upper Case</th> * <th>Lower Case</th> * <th>Description</th> * </tr> + * </thead> + * <tbody> * <tr> * <td>tr (Turkish)</td> * <td>\u0130</td> * <td>\u0069</td> * <td>capital letter I with dot above -&gt; small letter i</td>
*** 2478,2487 **** --- 2492,2502 ---- * <td><img src="doc-files/iota.gif" alt="iota"><img src="doc-files/chi.gif" alt="chi"> * <img src="doc-files/theta.gif" alt="theta"><img src="doc-files/upsilon.gif" alt="upsilon"> * <img src="doc-files/sigma1.gif" alt="sigma"></td> * <td>lowercased all chars in String</td> * </tr> + * </tbody> * </table> * * @param locale use the case transformation rules for this locale * @return the {@code String}, converted to lowercase. * @see java.lang.String#toLowerCase()
*** 2524,2540 **** * class. Since case mappings are not always 1:1 char mappings, the resulting * {@code String} may be a different length than the original {@code String}. * <p> * Examples of locale-sensitive and 1:M case mappings are in the following table. * ! * <table border="1" summary="Examples of locale-sensitive and 1:M case mappings. Shows Language code of locale, lower case, upper case, and description."> * <tr> * <th>Language Code of Locale</th> * <th>Lower Case</th> * <th>Upper Case</th> * <th>Description</th> * </tr> * <tr> * <td>tr (Turkish)</td> * <td>\u0069</td> * <td>\u0130</td> * <td>small letter i -&gt; capital letter I with dot above</td> --- 2539,2559 ---- * class. Since case mappings are not always 1:1 char mappings, the resulting * {@code String} may be a different length than the original {@code String}. * <p> * Examples of locale-sensitive and 1:M case mappings are in the following table. * ! * <table class="plain"> ! * <caption style="display:none">Examples of locale-sensitive and 1:M case mappings. Shows Language code of locale, lower case, upper case, and description.</caption> ! * <thead> * <tr> * <th>Language Code of Locale</th> * <th>Lower Case</th> * <th>Upper Case</th> * <th>Description</th> * </tr> + * </thead> + * <tbody> * <tr> * <td>tr (Turkish)</td> * <td>\u0069</td> * <td>\u0130</td> * <td>small letter i -&gt; capital letter I with dot above</td>
*** 2555,2564 **** --- 2574,2584 ---- * <td>(all)</td> * <td>Fahrvergn&uuml;gen</td> * <td>FAHRVERGN&Uuml;GEN</td> * <td></td> * </tr> + * </tbody> * </table> * @param locale use the case transformation rules for this locale * @return the {@code String}, converted to uppercase. * @see java.lang.String#toUpperCase() * @see java.lang.String#toLowerCase()
< prev index next >