From 1ea3bee71068bcd4edcfe7ea7bf9e1b4e4afe11d Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 9 Jan 2025 08:35:50 -0500 Subject: [PATCH] Javadoc current behavior --- .../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 25153c9ca40..a7969b0dda4 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 static String strip(String str, final String stripChars) { /** * Removes diacritics (~= accents) from a string. The case will not be altered. - *

For instance, 'à' will be replaced by 'a'.

- *

Decomposes ligatures and digraphs per the KD column in the - * Unicode Normalization Chart.

- * + *

+ * For instance, 'à' will be replaced by 'a'. + *

+ *

+ * Decomposes ligatures and digraphs per the KD column in the Unicode Normalization Chart. + *

*
-     * StringUtils.stripAccents(null)                = null
-     * StringUtils.stripAccents("")                  = ""
-     * StringUtils.stripAccents("control")           = "control"
+     * StringUtils.stripAccents(null)         = null
+     * StringUtils.stripAccents("")           = ""
+     * StringUtils.stripAccents("control")    = "control"
      * StringUtils.stripAccents("éclair")     = "eclair"
+     * StringUtils.stripAccents("\u1d43\u1d47\u1d9c\u00b9\u00b2\u00b3")     = "abc123"
+     * StringUtils.stripAccents("\u00BC \u00BD \u00BE")      = "1⁄4 1⁄2 3⁄4"
      * 
+ *

+ * See also Unicode Standard Annex #15 Unicode Normalization Forms. + *

* * @param input String to be stripped * @return input text with diacritics removed