diff --git a/src/java/org/apache/commons/lang/CharSetUtils.java b/src/java/org/apache/commons/lang/CharSetUtils.java index ce43ea2bf..7c1fd25a4 100644 --- a/src/java/org/apache/commons/lang/CharSetUtils.java +++ b/src/java/org/apache/commons/lang/CharSetUtils.java @@ -66,7 +66,7 @@ * @author Phil Steitz * @author Gary Gregory * @since 1.0 - * @version $Id: CharSetUtils.java,v 1.28 2003/09/24 20:22:33 fredrik Exp $ + * @version $Id: CharSetUtils.java,v 1.29 2003/11/04 21:16:34 fredrik Exp $ */ public class CharSetUtils { @@ -89,7 +89,7 @@ public CharSetUtils() { *
@@ -246,8 +246,8 @@ public static int count(String str, String[] set) { * CharSetUtils.keep("", *) = "" * CharSetUtils.keep(*, null) = "" * CharSetUtils.keep(*, "") = "" - * CharSetUtils.keep("hello", "hl") = "hll" - * CharSetUtils.keep("hello", "le") = "ell" + * CharSetUtils.keep("hello", "hl") = "hll" + * CharSetUtils.keep("hello", "le") = "ell" ** * @see #evaluateSet(java.lang.String[]) for set-syntax. @@ -305,8 +305,8 @@ public static String keep(String str, String[] set) { * CharSetUtils.delete("", *) = "" * CharSetUtils.delete(*, null) = * * CharSetUtils.delete(*, "") = * - * CharSetUtils.delete("hello", "hl") = "hll" - * CharSetUtils.delete("hello", "le") = "ell" + * CharSetUtils.delete("hello", "hl") = "hll" + * CharSetUtils.delete("hello", "le") = "ell" * * * @see #evaluateSet(java.lang.String[]) for set-syntax. @@ -369,7 +369,7 @@ private static String modify(String str, String[] set, boolean expect) { *
An example is:
*If the length of characters to search for is greater than the @@ -378,16 +378,16 @@ private static String modify(String str, String[] set, boolean expect) { * *
* CharSetUtils.translate(null, *, *) = null - * CharSetUtils.translate("", *, *) = "" + * CharSetUtils.translate("", *, *) = "" ** * @param str String to replace characters in, may be null * @param searchChars a set of characters to search for, must not be null - * @param replaceChars a set of characters to replace, must not be null or empty ("") + * @param replaceChars a set of characters to replace, must not be null or empty ("") * @return translated String,
null
if null string input
* @throws NullPointerException if with
or repl
* is null
- * @throws ArrayIndexOutOfBoundsException if with
is empty ("")
+ * @throws ArrayIndexOutOfBoundsException if with
is empty ("")
* @deprecated Use {@link StringUtils#replaceChars(String, String, String)}.
* Method will be removed in Commons Lang 3.0.
*/