Skip to content

Commit

Permalink
Javadoc current behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 9, 2025
1 parent bfc2275 commit 1ea3bee
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions src/main/java/org/apache/commons/lang3/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7878,16 +7878,23 @@ public static String strip(String str, final String stripChars) {

/**
* Removes diacritics (~= accents) from a string. The case will not be altered.
* <p>For instance, '&agrave;' will be replaced by 'a'.</p>
* <p>Decomposes ligatures and digraphs per the KD column in the
* <a href = "https://www.unicode.org/charts/normalization/">Unicode Normalization Chart.</a></p>
*
* <p>
* For instance, '&agrave;' will be replaced by 'a'.
* </p>
* <p>
* Decomposes ligatures and digraphs per the KD column in the <a href = "https://www.unicode.org/charts/normalization/">Unicode Normalization Chart.</a>
* </p>
* <pre>
* StringUtils.stripAccents(null) = null
* StringUtils.stripAccents("") = ""
* StringUtils.stripAccents("control") = "control"
* StringUtils.stripAccents(null) = null
* StringUtils.stripAccents("") = ""
* StringUtils.stripAccents("control") = "control"
* StringUtils.stripAccents("&eacute;clair") = "eclair"
* StringUtils.stripAccents("\u1d43\u1d47\u1d9c\u00b9\u00b2\u00b3") = "abc123"
* StringUtils.stripAccents("\u00BC \u00BD \u00BE") = "1⁄4 1⁄2 3⁄4"
* </pre>
* <p>
* See also <a href="http://www.unicode.org/unicode/reports/tr15/tr15-23.html">Unicode Standard Annex #15 Unicode Normalization Forms</a>.
* </p>
*
* @param input String to be stripped
* @return input text with diacritics removed
Expand Down

0 comments on commit 1ea3bee

Please sign in to comment.