This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ea3bee71 Javadoc current behavior
1ea3bee71 is described below

commit 1ea3bee71068bcd4edcfe7ea7bf9e1b4e4afe11d
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Jan 9 08:35:50 2025 -0500

    Javadoc current behavior
---
 .../java/org/apache/commons/lang3/StringUtils.java  | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java 
b/src/main/java/org/apache/commons/lang3/StringUtils.java
index 25153c9ca..a7969b0dd 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -7878,16 +7878,23 @@ public class StringUtils {
 
     /**
      * 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

Reply via email to